We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4e026a commit 7cd0dbeCopy full SHA for 7cd0dbe
1 file changed
src/coloring.jl
@@ -642,7 +642,7 @@ function postprocess!(
642
# Determine if the tree is a star
643
if is_star[k]
644
# It is a non-trivial star and only the color of the hub is needed
645
- (_, hub) = reverse_bfs_order[end]
+ (_, hub) = reverse_bfs_order[1]
646
color_used[color[hub]] = true
647
else
648
# It is not a star and both colors are needed during the decompression
0 commit comments