Issue #38 new

Incompatibility with latest version of Networkx

Anonymous created an issue

networkx==2.0 implements G.edges() instead of G.edges_iter(). When would you provide a version with updated best_partition() code that will be compatible with that change?

File "/usr/local/lib/python2.7/site-packages/community/community_louvain.py", line 203, in best_partition dendo = generate_dendrogram(graph, partition, weight, resolution) File "/usr/local/lib/python2.7/site-packages/community/community_louvain.py", line 285, in generate_dendrogram current_graph = induced_graph(partition, current_graph, weight) File "/usr/local/lib/python2.7/site-packages/community/community_louvain.py", line 339, in induced_graph for node1, node2, datas in graph.edges_iter(data=True): AttributeError: 'Graph' object has no attribute 'edges_iter'

Comments (1)

  1. Log in to comment