You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fast Algorithm for Finding Community Structure (migrated from Trac #245) #245
Here is a version of the algorithm from "Finding community structure in very large networks" by Aaron Clauset, M.E.J. Newman, and Cristopher Moore.
I think there are some things I could probably do better but the algorithm is pretty intensive. If there was a maxheapq structure in Python it might save some time. Any improvements I'd love to see. It's not simple, consult the paper if you're curious why I did what I did.
One thing that I do that's somewhat crazyish is that I am building a dendrogram of the process. Thus, each node is actually a tuple containing what are supposed to be communities. In the end you'd have a single root node that is all communities as one.
The authors do provide a version of this written in C but of course they have lots of fun stuff to do because they don't have the Python datastructures. However, theirs runs faster. With that said, I did test my algorithm and it gives identical results.
Activity
networkx-trac commentedon Jul 20, 2012
Attachment in Trac by trac user dcurtis, 2009-06-17: fastcommunity.py
networkx-trac commentedon Jul 20, 2012
Comment in Trac by trac user dcurtis, 2009-06-17
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @chebee7i, 2009-06-18
I'll try to take a look at this in the next day or so. You mentioned that you had performed tests to known values. Can you attach those tests?
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2010-09-06
networkx-trac commentedon Jul 20, 2012
Attachment in Trac by zhanghaisu, 2011-03-10: fastcommunity_modified.py
jyswpp commentedon Mar 31, 2014
I have a question about an equation in
fastcommunity.py. In line 55 is the equationbut in the paper,
hagberg commentedon Nov 24, 2017
Closed due to inactivity.