Skip to content

Commit 904eb07

Browse files
committed
Use JuliaFormatter...
1 parent e999c65 commit 904eb07

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/postprocessing.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ function postprocess!(
5050
end
5151

5252
# if at least one of the colors is not used, modify the color assignments of vertices
53-
has_neutral_color = bicoloring ? any(!, row_color_used) || any(!, column_color_used) : any(!, color_used)
53+
has_neutral_color = if bicoloring
54+
any(!, row_color_used) || any(!, column_color_used)
55+
else
56+
any(!, color_used)
57+
end
5458

5559
if has_neutral_color
5660
# size of the original matrix on which we want to perform coloring or bicoloring
@@ -62,7 +66,8 @@ function postprocess!(
6266
# count how many color indices are skipped before each color,
6367
# in order to compact the color indexing after removing unused colors
6468
for ci in 1:nb_colors
65-
ci_required = bicoloring ? row_color_used[ci] || column_color_used[ci] : color_used[ci]
69+
ci_required =
70+
bicoloring ? row_color_used[ci] || column_color_used[ci] : color_used[ci]
6671
if ci_required
6772
offsets[ci] = num_unused_colors
6873
else

0 commit comments

Comments
 (0)