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
Release files for community-detection 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| community_detection-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Release files / community_detection-0.0.14-py3-none-any.whl
| Download URL | community_detection-0.0.14-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45ef133d43c0e394379cacddd00bb8488053498c329dc5e770a2b1815ad457b6
|
|
BLAKE2b-256 checksum How to use checksums |
db544f191e669079e7577b55fe99f4e663b3b69520f50d7d19e7c55d089b7f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|