diff options
Diffstat (limited to 'networkx/algorithms/assortativity/pairs.py')
-rw-r--r-- | networkx/algorithms/assortativity/pairs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/assortativity/pairs.py b/networkx/algorithms/assortativity/pairs.py index 8516fa4a..557148a1 100644 --- a/networkx/algorithms/assortativity/pairs.py +++ b/networkx/algorithms/assortativity/pairs.py @@ -45,7 +45,7 @@ def node_attribute_xy(G, attribute, nodes=None): else: nodes = set(nodes) node = G.node - for u,nbrsdict in G.adjacency_iter(): + for u,nbrsdict in G.adjacency(): if u not in nodes: continue uattr = node[u].get(attribute,None) |