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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 958ca585ec40b3ec80d3fed1636ebd46f60928ef0d7e28fd3a47259897ca5b0d |
|
MD5 | 4b39a8ee85908833fc65ab800d0329a5 |
|
BLAKE2b-256 | 34b7864af748fa29ec11b930d1401d51645db58a55753b41867de1df7cd875a8 |
Close
Hashes for community_detection-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a719d3a3a725c2f213704ce75fad7774655106267f3b2b4adebca595e5ef82 |
|
MD5 | 37686b8190c20abb4f1070c70f93f55b |
|
BLAKE2b-256 | e9adc57761f83b336bef4e0e2dfee5b7dd636628b77033ddf6189e6f80ae43cc |