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