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())