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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a457d1329f08385ba3e50c5d01859f685701e6cecc908a733cb21650926d0d8 |
|
MD5 | 8f6e33b094639a4782fb7b852b59a097 |
|
BLAKE2b-256 | f9ffd25a874822138fe63239343b9f3ec57f959b77b577fe06bad2c2a711c254 |
Close
Hashes for community_detection-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5a0128a68086b4d11457cf599dae7c1513a76308e2e1d0d5cfc6ee7186b877 |
|
MD5 | ce21f11e590696e468d9cad9615c0eb7 |
|
BLAKE2b-256 | 8d42eda07ef9fc4a0ce73a813b680a76c08227de2e6fc2ca140066049ac9dfff |