|
8 | 8 | # No Edges
|
9 | 9 | ex = Graph(1)
|
10 | 10 | expected_cyclebasis = Array{Int64,1}[]
|
11 |
| - @testset "no edges" for g in testgraphs(ex) |
| 11 | + @testset "no edges" for g in test_generic_graphs(ex) |
12 | 12 | ex_cyclebasis = @inferred cycle_basis(g)
|
13 | 13 | @test isempty(ex_cyclebasis)
|
14 | 14 | end
|
|
17 | 17 | elist = [(1, 1)]
|
18 | 18 | ex = Graph(SimpleEdge.(elist))
|
19 | 19 | expected_cyclebasis = Array{Int64,1}[[1]]
|
20 |
| - @testset "one self-edge" for g in testgraphs(ex) |
| 20 | + @testset "one self-edge" for g in test_generic_graphs(ex) |
21 | 21 | ex_cyclebasis = cycle_basis(g)
|
22 | 22 | evaluate(ex_cyclebasis, expected_cyclebasis)
|
23 | 23 | end
|
|
26 | 26 | elist = [(1, 2), (2, 3), (3, 4), (4, 1), (1, 5)]
|
27 | 27 | ex = Graph(SimpleEdge.(elist))
|
28 | 28 | expected_cyclebasis = Array{Int64,1}[[1, 2, 3, 4]]
|
29 |
| - @testset "one cycle" for g in testgraphs(ex) |
| 29 | + @testset "one cycle" for g in test_generic_graphs(ex) |
30 | 30 | ex_cyclebasis = cycle_basis(g)
|
31 | 31 | evaluate(ex_cyclebasis, expected_cyclebasis)
|
32 | 32 | end
|
|
35 | 35 | elist = [(1, 2), (1, 3), (2, 3), (2, 4), (3, 4)]
|
36 | 36 | ex = Graph(SimpleEdge.(elist))
|
37 | 37 | expected_cyclebasis = Array{Int64,1}[[2, 3, 4], [2, 1, 3]]
|
38 |
| - @testset "2 of 3 cycles w/ basis" for g in testgraphs(ex) |
| 38 | + @testset "2 of 3 cycles w/ basis" for g in test_generic_graphs(ex) |
39 | 39 | ex_cyclebasis = cycle_basis(g)
|
40 | 40 | evaluate(ex_cyclebasis, expected_cyclebasis)
|
41 | 41 | end
|
|
44 | 44 | elist = [(1, 2), (1, 3), (2, 3), (2, 4), (3, 4), (1, 5), (5, 6), (6, 4)]
|
45 | 45 | ex = Graph(SimpleEdge.(elist))
|
46 | 46 | expected_cyclebasis = Array{Int64,1}[[2, 4, 3], [1, 5, 6, 4, 3], [1, 2, 3]]
|
47 |
| - @testset "root argument" for g in testgraphs(ex) |
| 47 | + @testset "root argument" for g in test_generic_graphs(ex) |
48 | 48 | ex_cyclebasis = @inferred cycle_basis(g, 3)
|
49 | 49 | evaluate(ex_cyclebasis, expected_cyclebasis)
|
50 | 50 | end
|
51 | 51 |
|
52 | 52 | @testset "two isolated cycles" begin
|
53 | 53 | ex = blockdiag(cycle_graph(3), cycle_graph(4))
|
54 | 54 | expected_cyclebasis = [[1, 2, 3], [4, 5, 6, 7]]
|
55 |
| - for g in testgraphs(ex) |
| 55 | + for g in test_generic_graphs(ex) |
56 | 56 | found_cyclebasis = @inferred cycle_basis(g)
|
57 | 57 | evaluate(expected_cyclebasis, found_cyclebasis)
|
58 | 58 | end
|
|
0 commit comments