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])
def setUp(self): n = 5 g = random_tournament_graph(n) self.adj_matrix = g.csgraph.toarray() self.eye_bool = np.eye(n, dtype=bool)