Skip to content

Commit

Permalink
remove an ambiguous variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jangwon-yie authored and dschult committed Dec 13, 2023
1 parent e0d63b1 commit e151202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions networkx/algorithms/schultz.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def __list__dist_and_degree(g):
dist_pairs = dict(spl(g))

nodes = list(g.nodes)
l = list()
dist_degrees_tuple = list()
for i in range(len(nodes)):
for j in range(i + 1, len(nodes)):
d_ij = dist_pairs[nodes[i]][nodes[j]]
l.append((d_ij, g.degree[nodes[i]], g.degree[nodes[j]]))
dist_degrees_tuple.append((d_ij, g.degree[nodes[i]], g.degree[nodes[j]]))

return l
return dist_degrees_tuple

0 comments on commit e151202

Please sign in to comment.