From 67ae0ed895f363129452b123424c90f669e1dee4 Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Sat, 5 Apr 2025 16:07:35 -0500 Subject: [PATCH] Update coloring.jl --- src/coloring.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coloring.jl b/src/coloring.jl index 5c4f38a5..22e6e56b 100644 --- a/src/coloring.jl +++ b/src/coloring.jl @@ -314,7 +314,7 @@ function _prevent_cycle!( forbidden_colors::AbstractVector{<:Integer}, forest::Forest{<:Integer}, ) - root_wx = find_root!(forest, index_wx) # The edge wx belongs to the 2-colored tree T, represented by an edge with an integer ID + root_wx = find_root!(forest, index_wx) # root of the 2-colored tree T to which the edge wx belongs (p, q) = first_visit_to_tree[root_wx] if p != v # T is being visited from vertex v for the first time first_visit_to_tree[root_wx] = (v, w)