Skip to main content

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

qrcode_for_wechat_official_account

Project details


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

community_detection-0.0.14-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file community_detection-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: community_detection-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for community_detection-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 45ef133d43c0e394379cacddd00bb8488053498c329dc5e770a2b1815ad457b6
MD5 19eb2d5f40910f2d9d793da24b282362
BLAKE2b-256 db544f191e669079e7577b55fe99f4e663b3b69520f50d7d19e7c55d089b7f8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page