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