コード例 #1
0
 def test_not_strongly_connected(self):
     """TestData for a tournament that is not strongly connected."""
     G = DiGraph([(0, 1), (0, 2), (1, 2)])
     assert not is_strongly_connected(G)
コード例 #2
0
ファイル: test_tournament.py プロジェクト: 4c656554/networkx
 def test_not_strongly_connected(self):
     """Tests for a tournament that is not strongly connected."""
     G = DiGraph([(0, 1), (0, 2), (1, 2)])
     assert_false(is_strongly_connected(G))
コード例 #3
0
 def test_is_strongly_connected(self):
     """TestData for a strongly connected tournament."""
     G = DiGraph([(0, 1), (1, 2), (2, 0)])
     assert is_strongly_connected(G)
コード例 #4
0
ファイル: test_tournament.py プロジェクト: 4c656554/networkx
 def test_is_strongly_connected(self):
     """Tests for a strongly connected tournament."""
     G = DiGraph([(0, 1), (1, 2), (2, 0)])
     assert_true(is_strongly_connected(G))