Ejemplo n.º 1
0
def test_random_tournament_graph_seed():
    n = 7
    seed = 1234
    graphs = [random_tournament_graph(n, random_state=seed) for i in range(2)]
    assert_array_equal(*[g.csgraph.toarray() for g in graphs])
Ejemplo n.º 2
0
def test_random_tournament_graph_seed():
    n = 7
    seed = 1234
    graphs = [random_tournament_graph(n, random_state=seed) for i in range(2)]
    assert_array_equal(*[g.csgraph.toarray() for g in graphs])
Ejemplo n.º 3
0
 def setUp(self):
     n = 5
     g = random_tournament_graph(n)
     self.adj_matrix = g.csgraph.toarray()
     self.eye_bool = np.eye(n, dtype=bool)
Ejemplo n.º 4
0
 def setUp(self):
     n = 5
     g = random_tournament_graph(n)
     self.adj_matrix = g.csgraph.toarray()
     self.eye_bool = np.eye(n, dtype=bool)