Skip to content

Commit bf20ed0

Browse files
committed
Add karate_edges back
1 parent 977cad5 commit bf20ed0

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

test/runtests.jl

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,33 @@ using VisualRegressionTests
1515
istravis = "TRAVIS" keys(ENV)
1616
datadir = joinpath(@__DIR__, "data")
1717

18+
19+
20+
21+
# TODO smallgraph(:karate) has already been added to LightGraphs
22+
# but as there hasn't been any new version tagged, we relay on this instead
23+
karate_edges = Edge.([
24+
1 => 2, 1 => 3, 1 => 4, 1 => 5, 1 => 6, 1 => 7,
25+
1 => 8, 1 => 9, 1 => 11, 1 => 12, 1 => 13, 1 => 14,
26+
1 => 18, 1 => 20, 1 => 22, 1 => 32, 2 => 3, 2 => 4,
27+
2 => 8, 2 => 14, 2 => 18, 2 => 20, 2 => 22, 2 => 31,
28+
3 => 4, 3 => 8, 3 => 9, 3 => 10, 3 => 14, 3 => 28,
29+
3 => 29, 3 => 33, 4 => 8, 4 => 13 , 4 => 14, 5 => 7,
30+
5 => 11, 6 => 7, 6 => 11, 6 => 17 , 7 => 17, 9 => 31,
31+
9 => 33, 9 => 34, 10 => 34, 14 => 34, 15 => 33, 15 => 34,
32+
16 => 33, 16 => 34, 19 => 33, 19 => 34, 20 => 34, 21 => 33,
33+
21 => 34, 23 => 33, 23 => 34, 24 => 26, 24 => 28, 24 => 30,
34+
24 => 33, 24 => 34, 25 => 26, 25 => 28, 25 => 32, 26 => 32,
35+
27 => 30, 27 => 34, 28 => 34, 29 => 32, 29 => 34, 30 => 33,
36+
30 => 34, 31 => 33, 31 => 34, 32 => 33, 32 => 34, 33 => 34,
37+
])
1838
# graphs to test
19-
g = smallgraph(:karate)
39+
#g = smallgraph(:karate)
40+
g = smallgraph(karate_edges)
2041
h = LightGraphs.WheelGraph(10)
2142

43+
44+
2245
# plot and save function for visual regression tests
2346
function plot_and_save(fname, g; gplot_kwargs...)
2447
Random.seed!(2017)

0 commit comments

Comments
 (0)