Skip to content

Commit 9550cfc

Browse files
committed
fixed tests
1 parent 701e195 commit 9550cfc

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/test_greedy_star.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ colors.
4545
4646
=#
4747

48-
inner = SimpleGraph(4)
49-
g = VSafeGraph(inner)
48+
gx = SimpleGraph(4)
5049

51-
add_edge!(g,1,2)
52-
add_edge!(g,1,3)
53-
add_edge!(g,2,3)
54-
add_edge!(g,3,4)
50+
add_edge!(gx,1,2)
51+
add_edge!(gx,1,3)
52+
add_edge!(gx,2,3)
53+
add_edge!(gx,3,4)
5554

56-
push!(test_graphs, g)
55+
push!(test_graphs, gx)
5756

5857
#begin testing
5958
for i in 1:6
@@ -92,7 +91,7 @@ for i in 1:6
9291

9392
#test condition 2
9493
for j = vertices(g)
95-
walk = LighGraphs.saw(g, j, 4)
94+
walk = LightGraphs.saw(g, j, 4)
9695
walk_colors = zeros(Int64, 0)
9796
if length(walk) >= 4
9897
for t in walk

0 commit comments

Comments
 (0)