From 9c026b2bd00092a0b87412a176a060f6ed151638 Mon Sep 17 00:00:00 2001 From: maleicacid <4982384+kazuki0824@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:06:18 +0900 Subject: [PATCH] Update test_strongly_connected.py --- tests/digraph/test_strongly_connected.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/digraph/test_strongly_connected.py b/tests/digraph/test_strongly_connected.py index 3278fffe6..c13731a97 100644 --- a/tests/digraph/test_strongly_connected.py +++ b/tests/digraph/test_strongly_connected.py @@ -66,6 +66,7 @@ def test_number_strongly_connected_big(self): G.add_child(node, str(i), {}) self.assertEqual(len(rustworkx.strongly_connected_components(G)), 200000) + class TestCondensation(unittest.TestCase): def setUp(self): # グラフをセットアップ @@ -99,7 +100,9 @@ def test_condensation(self): self.assertEqual(condensed_graph.node_count(), 2) # [SCC(a, b, c, d), SCC(e, f, g, h)] # エッジ数を確認 - self.assertEqual(condensed_graph.edge_count(), 1) # Edge: [SCC(a, b, c, d)] -> [SCC(e, f, g, h)] + self.assertEqual( + condensed_graph.edge_count(), 1 + ) # Edge: [SCC(a, b, c, d)] -> [SCC(e, f, g, h)] # 縮約されたノードの内容を確認 nodes = list(condensed_graph.nodes())