Exemple #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)
Exemple #2
0
 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))
Exemple #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)
Exemple #4
0
 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))