Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Community detection using attribute and structural similarities.

License

NotificationsYou must be signed in to change notification settings

ankushbhatia2/community-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community detection using attribute and structural similarities.

Installation:

  pip install community_detect

Dependencies:

NetworkXMatplotlib

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                                   )        Displays a matplotlib window displaying communities on a graph

About

Community detection using attribute and structural similarities.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp