Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/coloring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ function acyclic_coloring(
_prevent_cycle!(
v,
w,
x,
index_wx,
color_x,
first_visit_to_tree,
Expand Down Expand Up @@ -333,7 +332,7 @@ function acyclic_coloring(
color_x = color[x]
(x == v || iszero(color_x)) && continue
if color_x == color[v]
_merge_trees!(v, w, x, index_vw, index_wx, forest) # merge trees T₁ ∋ vw and T₂ ∋ wx if T₁ != T₂
_merge_trees!(index_vw, index_wx, forest) # merge trees T₁ ∋ vw and T₂ ∋ wx if T₁ != T₂
end
end
end
Expand All @@ -354,7 +353,6 @@ function _prevent_cycle!(
# not modified
v::Integer,
w::Integer,
x::Integer,
index_wx::Integer,
color_x::Integer,
# modified
Expand Down Expand Up @@ -396,9 +394,6 @@ end

function _merge_trees!(
# not modified
v::Integer,
w::Integer,
x::Integer,
index_vw::Integer,
index_wx::Integer,
# modified
Expand Down
Loading