diff options
author | Mridul Seth <seth.mridul@gmail.com> | 2015-05-23 16:56:04 +0530 |
---|---|---|
committer | Mridul Seth <seth.mridul@gmail.com> | 2015-06-17 15:39:24 +0530 |
commit | 2b84ef1d2186dc46340df9ed958d3ce92150db08 (patch) | |
tree | 86ab0ef3e3bb3755fc72ae88d3d7ee59904d5bbf /networkx/algorithms/cluster.py | |
parent | da15b7b1111d39183cc3dfb1c8192859ff99ddc5 (diff) | |
download | networkx-2b84ef1d2186dc46340df9ed958d3ce92150db08.tar.gz |
Remove edges_iter, G.edges() now returns an iterator instead of list
Diffstat (limited to 'networkx/algorithms/cluster.py')
-rw-r--r-- | networkx/algorithms/cluster.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/cluster.py b/networkx/algorithms/cluster.py index 8947b3cd..29d96243 100644 --- a/networkx/algorithms/cluster.py +++ b/networkx/algorithms/cluster.py @@ -89,7 +89,7 @@ def _weighted_triangles_and_degree_iter(G, nodes=None, weight='weight'): if G.is_multigraph(): raise NetworkXError("Not defined for multigraphs.") - if weight is None or G.edges()==[]: + if weight is None or list(G.edges())==[]: max_weight=1.0 else: max_weight=float(max(d.get(weight,1.0) |