Skip to content

Commit 7cd0dbe

Browse files
committed
Update src/coloring.jl
1 parent a4e026a commit 7cd0dbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coloring.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ function postprocess!(
642642
# Determine if the tree is a star
643643
if is_star[k]
644644
# It is a non-trivial star and only the color of the hub is needed
645-
(_, hub) = reverse_bfs_order[end]
645+
(_, hub) = reverse_bfs_order[1]
646646
color_used[color[hub]] = true
647647
else
648648
# It is not a star and both colors are needed during the decompression

0 commit comments

Comments
 (0)