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
clustering (community finding) algorithms (migrated from Trac #158) #160
I'm wondering if networkx has any plan to add some clustering algorithms in the future version. Clustering/module detection is a frequently used technology in the graph analysis.
Comment in Trac by trac user jolleycraig, 2009-12-22
I stumbled across this thread because I had the same question; since the ticket was still open I went ahead and wrote something. It gives back the same results for the karate club network reported in the paper, both with and without the (optional) Kernighan-Lin refinement step, so I'm (tentatively) willing to trust it.
Comment in Trac by Moritz Beber <moritz.beber, 2011-03-22
I used your community detection code on some of the networks mentioned in the Newman PNAS publication that is from 2006 and not 2009 btw. Unfortunately, the results are worse than those reported in the paper and in general the algorithm runs really slowly, so I couldn't test it on the larger networks.
Here are my results:
Karate N: 34 M: 78 Q: 0.419
Jazz musicians N: 198 M: 5484 Q: 0.361
Metabolic N: 453 M: 4596 Q: 0.405
E-mail N: 1133 M: 5452 Q: 0.552
The E-mail network already computed in the order of a day so that's a lot slower than what I expected.
I (as a user) strongly vote for the inclusion of community finding algorithms in networkx. I can even contribute my own python implementation of the Affinity Propagation CLustering algorithm (by Frey and Dueck), if that would be of interest.
There is a Google Summer of Code project to implement community finding algorithms that has just started. See ticket #557. I don't think we had planned to include the algorithm you mention so that would be a good addition - open another ticket if you would like to add it.
Activity
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2008-08-17
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2008-11-22
networkx-trac commentedon Jul 20, 2012
Attachment in Trac by trac user jolleycraig, 2009-12-22: community.py
networkx-trac commentedon Jul 20, 2012
Comment in Trac by trac user jolleycraig, 2009-12-22
I stumbled across this thread because I had the same question; since the ticket was still open I went ahead and wrote something. It gives back the same results for the karate club network reported in the paper, both with and without the (optional) Kernighan-Lin refinement step, so I'm (tentatively) willing to trust it.
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2010-09-06
Needs tests and documentation. There are many other "community finding" algorithms in addition to this one.
networkx-trac commentedon Jul 20, 2012
Comment in Trac by Moritz Beber <moritz.beber, 2011-03-22
I used your community detection code on some of the networks mentioned in the Newman PNAS publication that is from 2006 and not 2009 btw. Unfortunately, the results are worse than those reported in the paper and in general the algorithm runs really slowly, so I couldn't test it on the larger networks.
Here are my results:
Karate N: 34 M: 78 Q: 0.419
Jazz musicians N: 198 M: 5484 Q: 0.361
Metabolic N: 453 M: 4596 Q: 0.405
E-mail N: 1133 M: 5452 Q: 0.552
The E-mail network already computed in the order of a day so that's a lot slower than what I expected.
networkx-trac commentedon Jul 20, 2012
Comment in Trac by atanas.kamburov, 2011-06-14
I (as a user) strongly vote for the inclusion of community finding algorithms in networkx. I can even contribute my own python implementation of the Affinity Propagation CLustering algorithm (by Frey and Dueck), if that would be of interest.
networkx-trac commentedon Jul 20, 2012
Comment in Trac by @hagberg, 2011-06-14
There is a Google Summer of Code project to implement community finding algorithms that has just started. See ticket #557. I don't think we had planned to include the algorithm you mention so that would be a good addition - open another ticket if you would like to add it.
hagberg commentedon Nov 24, 2017
Closing this issue due to inactivity. Open new issues for clustering algorithms.