724
724
# Bc::AbstractMatrix,
725
725
# result::StarSetBicoloringResult,
726
726
# )
727
- # (; ag, S, A_indices, compressed_indices, pos_Bc) = result
727
+ # (; S, A_indices, compressed_indices, pos_Bc) = result
728
728
# fill!(A, zero(eltype(A)))
729
729
730
730
# ind_Br = 0
@@ -754,7 +754,7 @@ function decompress!(
754
754
Bc:: AbstractMatrix ,
755
755
result:: StarSetBicoloringResult ,
756
756
)
757
- (; ag, A_indices, compressed_indices, pos_Bc) = result
757
+ (; A_indices, compressed_indices, pos_Bc) = result
758
758
nzA = nonzeros (A)
759
759
for k in 1 : pos_Bc
760
760
nzA[A_indices[k]] = Bc[compressed_indices[k]]
@@ -774,7 +774,6 @@ function decompress!(
774
774
result:: TreeSetBicoloringResult ,
775
775
) where {R<: Real }
776
776
(;
777
- ag,
778
777
symmetric_color,
779
778
symmetric_to_row,
780
779
symmetric_to_column,
@@ -783,7 +782,6 @@ function decompress!(
783
782
nt,
784
783
buffer,
785
784
) = result
786
- (; S) = ag
787
785
788
786
m, n = size (A)
789
787
fill! (A, zero (R))
@@ -801,6 +799,7 @@ function decompress!(
801
799
802
800
# Reset the buffer to zero for all vertices in the tree (except the root)
803
801
for pos in first: last
802
+ (vertex, _) = reverse_bfs_orders[pos]
804
803
buffer_right_type[vertex] = zero (R)
805
804
end
806
805
# Reset the buffer to zero for the root vertex
@@ -831,7 +830,6 @@ function decompress!(
831
830
result:: TreeSetBicoloringResult ,
832
831
) where {R<: Real }
833
832
(;
834
- ag,
835
833
symmetric_color,
836
834
symmetric_to_column,
837
835
symmetric_to_row,
@@ -841,7 +839,6 @@ function decompress!(
841
839
A_indices,
842
840
buffer,
843
841
) = result
844
- (; S) = ag
845
842
846
843
m, n = size (A)
847
844
A_colptr = A. colptr
@@ -864,6 +861,7 @@ function decompress!(
864
861
865
862
# Reset the buffer to zero for all vertices in the tree (except the root)
866
863
for pos in first: last
864
+ (vertex, _) = reverse_bfs_orders[pos]
867
865
buffer_right_type[vertex] = zero (R)
868
866
end
869
867
# Reset the buffer to zero for the root vertex
0 commit comments