Skip to main content

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

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)

Table of built distributions (wheels) for community-detection 0.0.14
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.14 This release

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page