File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ const is_APPVEYOR = ( Sys.iswindows() && haskey(ENV,"APPVEYOR") )
5
5
const is_TRAVIS = haskey (ENV ," TRAVIS" )
6
6
7
7
if GROUP == " All"
8
- # @time @safetestset "Exact coloring via contraction" begin include("test_contraction.jl") end
9
- # @time @safetestset "Greedy distance-1 coloring" begin include("test_greedy_d1.jl") end
10
- # @time @safetestset "Greedy star coloring" begin include("test_greedy_star.jl") end
8
+ @time @safetestset " Exact coloring via contraction" begin include (" test_contraction.jl" ) end
9
+ @time @safetestset " Greedy distance-1 coloring" begin include (" test_greedy_d1.jl" ) end
10
+ @time @safetestset " Greedy star coloring" begin include (" test_greedy_star.jl" ) end
11
11
@time @safetestset " Acyclic coloring" begin include (" test_acyclic.jl" ) end
12
- # @time @safetestset "Matrix to graph conversion" begin include("test_matrix2graph.jl") end
13
- # @time @safetestset "AD using colorvec vector" begin include("test_ad.jl") end
14
- # # @time @safetestset "Integration test" begin include("test_integration.jl") end
15
- # @time @safetestset "Special matrices" begin include("test_specialmatrices.jl") end
16
- # @time @safetestset "Jac Vecs and Hes Vecs" begin include("test_jaches_products.jl") end
12
+ @time @safetestset " Matrix to graph conversion" begin include (" test_matrix2graph.jl" ) end
13
+ @time @safetestset " AD using colorvec vector" begin include (" test_ad.jl" ) end
14
+ @time @safetestset " Integration test" begin include (" test_integration.jl" ) end
15
+ @time @safetestset " Special matrices" begin include (" test_specialmatrices.jl" ) end
16
+ @time @safetestset " Jac Vecs and Hes Vecs" begin include (" test_jaches_products.jl" ) end
17
17
end
18
18
19
19
if GROUP == " GPU"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Random.seed!(45)
10
10
test_graphs = Vector {SimpleGraph} (undef, 0 )
11
11
test_graphs_dir = Vector {SimpleDiGraph} (undef, 0 )
12
12
13
- for _ in 1 : 6
13
+ for _ in 1 : 5
14
14
nv = rand (5 : 20 )
15
15
ne = rand (1 : 100 )
16
16
graph = SimpleGraph (nv)
98
98
for i in 1 : 5
99
99
g = test_graphs[i]
100
100
dg = test_graphs_dir[i]
101
- println (" Testing graph $i " )
102
- n_v = nv (g)
103
- n_e = ne (g)
104
- println (" Number of vertices = $n_v , Number of edges = $n_e " )
105
- println (" Edges: " )
106
- for e in edges (g)
107
- println (e)
108
- end
109
- println ()
101
+
110
102
out_colors = SparseDiffTools. color_graph (g, SparseDiffTools. AcyclicColoring ())
111
- # println(out_colors)
103
+
112
104
# test condition 1
113
105
for v in vertices (g)
114
106
color = out_colors[v]
121
113
for i in 3 : 4
122
114
g = test_graphs[i]
123
115
dg = test_graphs_dir[i]
124
- # println("testing graph $i")
116
+
125
117
out_colors = SparseDiffTools. color_graph (g, SparseDiffTools. AcyclicColoring ())
126
- # println(out_colors)
118
+
127
119
# test condition 2
128
120
cycles = simplecycles (dg)
129
121
for c in cycles
You can’t perform that action at this time.
0 commit comments