Skip to content

Commit 248b972

Browse files
committed
Improve decompress_single_color! for StarSetColoringResult
1 parent 763c8a4 commit 248b972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/decompression.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ function decompress_single_color!(
476476

477477
# Recover the diagonal coefficients of A
478478
if has_diagonal(ag)
479-
for i in axes(A, 1)
480-
if !iszero(S[i, i]) && color[i] == c
479+
for i in group[c]
480+
if !iszero(S[i, i])
481481
A[i, i] = b[i]
482482
end
483483
end

0 commit comments

Comments
 (0)