community icon indicating copy to clipboard operation
community copied to clipboard

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

Open ghost opened this issue 7 years ago • 1 comments

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!

ghost avatar Sep 10 '16 18:09 ghost

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

canbax avatar Jan 13 '17 18:01 canbax