From 4874741251438824765967a36730b2693bc1096f Mon Sep 17 00:00:00 2001 From: Guy Aglionby Date: Wed, 28 Sep 2022 00:35:59 +0100 Subject: Fix steiner tree test (#5999) The weight in the true test result should match the weight in the graph --- networkx/algorithms/approximation/tests/test_steinertree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}), ], -- cgit v1.2.1