Skip to content

Commit b33d436

Browse files
authored
Update coloring.jl (#215)
Remove a useless call to _sort
1 parent f35e5af commit b33d436

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/coloring.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ function _prevent_cycle!(
365365
id = find_root!(forest, wx) # The edge wx belongs to the 2-colored tree T, represented by an edge with an integer ID
366366
(p, q) = first_visit_to_tree[id]
367367
if p != v # T is being visited from vertex v for the first time
368-
vw = _sort(v, w)
369368
first_visit_to_tree[id] = (v, w)
370369
elseif q != w # T is connected to vertex v via at least two edges
371370
forbidden_colors[color[x]] = v

0 commit comments

Comments
 (0)