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