A smart match 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de6311a3d9fa8fa5075ca68cb9a1c34428a53ae49f71b70cb0dbb0cdffe2ac3 |
|
MD5 | c6a20c47c41a0eae383dbaadb4b5b350 |
|
BLAKE2b-256 | e5f2ad00b0b1342e29ca161c9b277f97b2dff12989d2b4c388b12fa3d87e3faa |
Close
Hashes for community_detection-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d99fbb9f6debaa24460fac2970dba0ce8c27efb72bcf41151c633c846f69d9fe |
|
MD5 | 3504c98d57d558a4f8a06603d16c3294 |
|
BLAKE2b-256 | 21bfdfec4596550235a431d45e83635f0d69eb15029ea290b4153dfb1062d935 |