Skip to content

Commit

Permalink
remove unused code (#7076)
Browse files Browse the repository at this point in the history
  • Loading branch information
peijenburg committed Oct 31, 2023
1 parent 0b471dd commit 20c6c0d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions networkx/algorithms/distance_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,20 +631,6 @@ def barycenter(G, weight=None, attr=None, sp=None):
return barycenter_vertices


def _count_lu_permutations(perm_array):
"""Counts the number of permutations in SuperLU perm_c or perm_r"""
perm_cnt = 0
arr = perm_array.tolist()
for i in range(len(arr)):
if i != arr[i]:
perm_cnt += 1
n = arr.index(i)
arr[n] = arr[i]
arr[i] = i

return perm_cnt


@not_implemented_for("directed")
@nx._dispatch(edge_attrs="weight")
def resistance_distance(G, nodeA=None, nodeB=None, weight=None, invert_weight=True):
Expand Down

0 comments on commit 20c6c0d

Please sign in to comment.