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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ffe9247a0d17ecb8b092eb7ec4b87badcfe407dfb5db41ccf6ba67951370891 |
|
MD5 | fdac90ca9f5028e0193cac8aa4aac52d |
|
BLAKE2b-256 | ea56dc65b00f0b999a2686625afc0eff5bf34d9ddc17e14c9220c4f77fc6aaab |
Close
Hashes for community_detection-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 335d19c267dd4fd60fdb2439c8ece9c8344a8a51d8bec98921d9b325995cea6c |
|
MD5 | ef2605c0631a6daa9a4d225b38b9a283 |
|
BLAKE2b-256 | b2960d4298551b9e28a6527f1b9831fc4fa30de1966f4b333f098a0ba2f4281e |