kjahan / community

A Python implementation of Girvan-Newman algorithm
http://www.kazemjahanbakhsh.com/codes/cmty.html
143 stars 93 forks source link

When I run the application I am getting the following error... #5

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi Kjahan,

I am trying to run the code and I am getting the following message:

Graph communities: <generator object connected_components at 0x000000000374A630>

What does this infer?

Thanks!

canbax commented 7 years ago

It tries to print BestComps. Bestcomps = nx.connected_components(G) nextworkx 1.10 returns a generators here you can see to see the resultant graph you can use something like best_graph = G.copy(). you can look at my fork