Skip to main content

Community Detector based on algorithm for community detection using structural and attribute similarities

Project description

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

)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

community_detect-1.0.0.zip (4.7 kB view details)

Uploaded Source

File details

Details for the file community_detect-1.0.0.zip.

File metadata

File hashes

Hashes for community_detect-1.0.0.zip
Algorithm Hash digest
SHA256 f03e01a0375b55e8041e1f0624801d5e64063a5f541ae8b56e47d5dd3d39fd17
MD5 89667f4aadee549f992f93a1e2bddca5
BLAKE2b-256 57c9eab7d6c58c263ab4234b51ce7e2a6bc2836ece7152a839f28828c9d40c80

See more details on using hashes here.

Supported by

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