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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for community_detection-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c053f20b6b09dd67c05d84bad190d50bc58bc280141013aa5b078fb43f5f22c9 |
|
MD5 | 9f74413ca4dee68bb8ab65a367fcf17e |
|
BLAKE2b-256 | 044c2303bb95676d544efc89d46113d0df280b56b1f25941d910b3e1c96fb606 |