summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Aglionby <GuyAglionby@users.noreply.github.com>2022-09-28 00:35:59 +0100
committerGitHub <noreply@github.com>2022-09-27 19:35:59 -0400
commit4874741251438824765967a36730b2693bc1096f (patch)
tree1ee1ebd3fc8302bb53b53f31238fed762f963d47
parent98379291e96fb56a1754ceb70608dc9f37d25d6c (diff)
downloadnetworkx-4874741251438824765967a36730b2693bc1096f.tar.gz
Fix steiner tree test (#5999)
The weight in the true test result should match the weight in the graph
-rw-r--r--networkx/algorithms/approximation/tests/test_steinertree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/approximation/tests/test_steinertree.py b/networkx/algorithms/approximation/tests/test_steinertree.py
index 0647c9da..d7af1a1a 100644
--- a/networkx/algorithms/approximation/tests/test_steinertree.py
+++ b/networkx/algorithms/approximation/tests/test_steinertree.py
@@ -136,7 +136,7 @@ class TestSteinerTree:
],
[
(0, 5, {"weight": 6}),
- (4, 2, {"weight": 2}),
+ (4, 2, {"weight": 4}),
(4, 5, {"weight": 1}),
(3, 5, {"weight": 5}),
],