summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Schult <dschult@colgate.edu>2017-09-20 17:47:21 -0400
committerGitHub <noreply@github.com>2017-09-20 17:47:21 -0400
commit7150a6bc2d8616605d9cc0acf51b7ef08481032c (patch)
tree75931bd9e576bd4e9a252b9b951852ff935cfd24
parente3d91fe3446236da04bbb1741b5fa1f7e7e18a2e (diff)
downloadnetworkx-7150a6bc2d8616605d9cc0acf51b7ef08481032c.tar.gz
fix typo in mst.py. Fixes #2675
-rw-r--r--networkx/algorithms/tree/mst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/tree/mst.py b/networkx/algorithms/tree/mst.py
index b7b8c1d9..79e81f88 100644
--- a/networkx/algorithms/tree/mst.py
+++ b/networkx/algorithms/tree/mst.py
@@ -161,7 +161,7 @@ def kruskal_mst_edges(G, minimum, weight='weight',
if ignore_nan:
continue
msg = "NaN found as an edge weight. Edge %s"
- raise ValueError(msg % ((u, v, f, k, d),))
+ raise ValueError(msg % ((u, v, k, d),))
yield wt, u, v, k, d
else:
edges = G.edges(data=True)