def test_graph_is_tournament_seed(self): for n in range(10): G = random_tournament(5, seed=1) assert is_tournament(G)
def test_graph_is_tournament(self): for n in range(10): G = random_tournament(5) assert is_tournament(G)
def test_graph_is_tournament_zero_node(): G = random_tournament(0) assert is_tournament(G)
def test_graph_is_tournament(self): for n in range(10): G = random_tournament(5) assert_true(is_tournament(G))
def test_graph_is_tournament_one_node(): G = random_tournament(1) assert is_tournament(G)