Vương quốc Anhbenedekrozemberczki/LabelPropagation
A NetworkX implementation of Label Propagation from a "Near Linear Time Algorithm to Detect Community Structures in Large-Scale Networks" (Physical Review E 2008).
🧬 Label Propagation: Tìm cộng đồng trên đồ thị chỉ bằng cấu trúc liên kết
Thuật toán gần tuyến tính, không cần hàm mục tiêu hay số lượng cộng đồng trước khi chạy.
Đây là implement NetworkX của thuật toán Label Propagation theo bài báo "Near Linear Time Algorithm to Detect Community Structures in Large-scale Networks" (Usha Nandini Raghavan, Reka Albert, Soundar Kumara — Physical Review E, 2008). Dự án do benedekrozemberczki phát triển, giúp tự động phát hiện cấu trúc cộng đồng trong mạng lớn chỉ dựa trên kết nối giữa các nút.
✨ Điểm nổi bật
- Không cần biết trước số cộng đồng: Chỉ dùng cấu trúc đồ thị, mỗi nút tự động theo nhãn đa số hàng xóm.
- Gần tuyến tính: Nhanh trên đồ thị lớn nhờ số vòng lặp hạn chế.
- Hỗ trợ trọng số cạnh: Chọn chiến lược trọng số
--weighing(ví dụ:unit,overlap). - Cấu hình linh hoạt: Điều chỉnh
--rounds,--seed,--input,--assignment-output. - Dễ tích hợp: Chạy trực tiếp qua CLI với file CSV đầu vào.
- Mẫu dữ liệu kèm theo: Bộ dữ liệu Facebook Politicians mẫu trong thư mục
data/. - Xuất kết quả JSON: Lưu từng nút gán vào cộng đồng ra file
.json. - Tích hợp Karate Club: Có sẵn trong package Karate Club để dùng như thư viện Python thông thường.
💡 Vì sao đáng chú ý
Khác với các thuật toán khác cần tối ưu hàm mục tiêu phức tạp hoặc biết trước số cộng đồng, Label Propagation rất đơn giản nhưng hiệu quả — mỗi nút liên tục cập nhật nhãn theo đa số hàng xóm cho đến khi ổn định. Phù hợp cho phân tích mạng xã hội, mạng sinh học hoặc bất kỳ đồ thị liên kết dày đặc nào cần tìm nhóm ngầm.
#LabelPropagation #CommunityDetection #GraphTheory #NetworkX #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
An implementation of "EdMot: An Edge Enhancement Approach for Motif-aware Community Detection" (KDD 2019)
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...