We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b221a5d commit a12c312Copy full SHA for a12c312
1 file changed
src/coloring.jl
@@ -314,10 +314,10 @@ function _prevent_cycle!(
314
forbidden_colors::AbstractVector{<:Integer},
315
forest::Forest{<:Integer},
316
)
317
- id = find_root!(forest, index_wx) # The edge wx belongs to the 2-colored tree T, represented by an edge with an integer ID
318
- (p, q) = first_visit_to_tree[id]
+ 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
+ (p, q) = first_visit_to_tree[root_wx]
319
if p != v # T is being visited from vertex v for the first time
320
- first_visit_to_tree[id] = (v, w)
+ first_visit_to_tree[root_wx] = (v, w)
321
elseif q != w # T is connected to vertex v via at least two edges
322
forbidden_colors[color[x]] = v
323
end
0 commit comments