@@ -15,10 +15,33 @@ using VisualRegressionTests
15
15
istravis = " TRAVIS" ∈ keys (ENV )
16
16
datadir = joinpath (@__DIR__ , " data" )
17
17
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
+ ])
18
38
# graphs to test
19
- g = smallgraph (:karate )
39
+ # g = smallgraph(:karate)
40
+ g = smallgraph (karate_edges)
20
41
h = LightGraphs. WheelGraph (10 )
21
42
43
+
44
+
22
45
# plot and save function for visual regression tests
23
46
function plot_and_save (fname, g; gplot_kwargs... )
24
47
Random. seed! (2017 )
0 commit comments