summaryrefslogtreecommitdiff
path: root/networkx/algorithms/assortativity/pairs.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/algorithms/assortativity/pairs.py')
-rw-r--r--networkx/algorithms/assortativity/pairs.py2
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)