Skip to main content
community-detect

Community detection using attribute and structural similarities.

Installation:

pip install community_detect

Dependencies:

NetworkX

Matplotlib

Usage:

Import:

from community_detect import Community

Initialize:

com = Community(alpha_weight = 0.5) #You can add your own value for Alpha

Functions:

Main method: get_communities(Graph, #Your Graph

Vertices, #List of Vertices

Similarity Matrix, #Similarity matrix for attribute similarities (It should be a N X N matrix where N is the number of vertices

Similarity Matrix Type #Types : cosine, euclidean etc

)

Returns a dictionary with each key containing all the nodes in that community
To View Communities : view_communities(Communities, #Output of above function

Graph, #Your Graph

Vertices, #List of Vertices

Similarity Matrix, #Similarity matrix for attribute similarities (It should be a N X N matrix where N is the number of vertices

Similarity Matrix Type #Types : cosine, euclidean etc

)

Release files for community_detect 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for community_detect 1.0.0
File Size Uploaded
community_detect-1.0.0.zip 4.7 kB Details

Release files / community_detect-1.0.0.zip

Download URL community_detect-1.0.0.zip
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f03e01a0375b55e8041e1f0624801d5e64063a5f541ae8b56e47d5dd3d39fd17
BLAKE2b-256 checksum
How to use checksums
57c9eab7d6c58c263ab4234b51ce7e2a6bc2836ece7152a839f28828c9d40c80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

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