A community detection package
Project description
Introduction
The community-detection module contains basic functions for find communities in a graph. Internally, community-detection uses simple-graph to hold the structure of a graph.
Install
pip install community-detection
or update
pip install --upgrade community-detection
Usage
from simple_graph import Graph
from community_detection import FastUnfolding
G = Graph({0: [1, 2], 1: [2]})
fu = FastUnfolding()
communities = fu.process(G)
Q = fu.modularity(G, communities)
print(communities)
print('Q:', Q)
ouput:
[[0, 1, 2]]
Q: 0.0
License
community-detection is a free software. See the file LICENSE for the full text.
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for community_detection-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1b2298460b6f97b6e98e28c89e1971b773e861d2d89a8bc71d611432f415f3 |
|
MD5 | 54c4d7f5f6f4feb7177894d7847dd3a9 |
|
BLAKE2b-256 | de22325bbe855931fbb50d9eeb7c4969ac339a6fcc4de1f9da6eec6397a90e63 |
Close
Hashes for community_detection-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9736dd65e0815be79baa247d391e0d625f3a6c8444c9196a49e13df9760cacc2 |
|
MD5 | 2730d458a419f6bd73d5d2efccfb1b45 |
|
BLAKE2b-256 | b327d1869b85f2e6592ebddda3820d2c645d146e39bf2848a9fb48c550ab2007 |