Skip to content

Commit db6bf70

Browse files
committed
fixed tests
1 parent 2a6c8cc commit db6bf70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/coloring/acyclic_coloring.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ function prevent_cycle!(v::Integer,
8383
x::Integer,
8484
g::LightGraphs.AbstractGraph,
8585
set::DisjointSets{<:Integer},
86-
first_visit_to_tree::AbstractVector{<:Tuple{Integer,Integer}},
87-
forbidden_colors::AbstractVector{<:Tuple{Integer, Integer}},
86+
first_visit_to_tree::Array{<:Tuple{Integer,Integer},1},
87+
forbidden_colors::AbstractVector{<:Integer},
8888
color::AbstractVector{<:Integer})
8989
e = find(w, x, g, set)
9090
p, q = first_visit_to_tree[e]
@@ -113,8 +113,8 @@ edges present in g.
113113
function grow_star!(v::Integer,
114114
w::Integer,
115115
g::LightGraphs.AbstractGraph,
116-
set::DisjointSets{Integer},
117-
first_neighbor::AbstractVector{<:Tuple{Integer,Integer}},
116+
set::DisjointSets{<:Integer},
117+
first_neighbor::Array{<: Tuple{Integer,Integer},1},
118118
color::AbstractVector{<:Integer})
119119
make_set!(v,w,g,set)
120120
p, q = first_neighbor[color[w]]
@@ -223,7 +223,7 @@ end
223223
224224
Helper function to initialize the data structures with tuple (0,0)
225225
"""
226-
function init_array!(array::AbstractVector{<:Tuple{Integer, Integer}},
226+
function init_array!(array::Array{<: Tuple{Integer,Integer},1},
227227
n::Integer)
228228
for i in 1:n
229229
push!(array,(0,0))

0 commit comments

Comments
 (0)