Skip to content

Commit 461236e

Browse files
committed
Update src/coloring.jl
1 parent e2c3525 commit 461236e

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
@@ -636,7 +636,7 @@ function postprocess!(
636636
# Determine if the tree is a star
637637
if is_star[k]
638638
# It is a non-trivial star and only the color of the hub is needed
639-
(_, hub) = reverse_bfs_order[end]
639+
(_, hub) = reverse_bfs_order[1]
640640
color_used[color[hub]] = true
641641
else
642642
# It is not a star and both colors are needed during the decompression

0 commit comments

Comments
 (0)