コード例 #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
ファイル: test_tournament.py プロジェクト: 4c656554/networkx
 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)