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.

Files for community_detect, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size community_detect-1.0.0.zip (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page