summaryrefslogtreecommitdiff
path: root/networkx/linalg/attrmatrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/linalg/attrmatrix.py')
-rw-r--r--networkx/linalg/attrmatrix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/linalg/attrmatrix.py b/networkx/linalg/attrmatrix.py
index df193bb9..df8684fd 100644
--- a/networkx/linalg/attrmatrix.py
+++ b/networkx/linalg/attrmatrix.py
@@ -258,7 +258,7 @@ def attr_matrix(G, edge_attr=None, node_attr=None, normalized=False,
M = np.zeros((N,N), dtype=dtype, order=order)
seen = set([])
- for u,nbrdict in G.adjacency_iter():
+ for u,nbrdict in G.adjacency():
for v in nbrdict:
# Obtain the node attribute values.
i, j = index[node_value(u)], index[node_value(v)]
@@ -421,7 +421,7 @@ def attr_sparse_matrix(G, edge_attr=None, node_attr=None,
M = sparse.lil_matrix((N,N), dtype=dtype)
seen = set([])
- for u,nbrdict in G.adjacency_iter():
+ for u,nbrdict in G.adjacency():
for v in nbrdict:
# Obtain the node attribute values.
i, j = index[node_value(u)], index[node_value(v)]