724724# Bc::AbstractMatrix,
725725# result::StarSetBicoloringResult,
726726# )
727- # (; ag, S, A_indices, compressed_indices, pos_Bc) = result
727+ # (; S, A_indices, compressed_indices, pos_Bc) = result
728728# fill!(A, zero(eltype(A)))
729729
730730# ind_Br = 0
@@ -754,7 +754,7 @@ function decompress!(
754754 Bc:: AbstractMatrix ,
755755 result:: StarSetBicoloringResult ,
756756)
757- (; ag, A_indices, compressed_indices, pos_Bc) = result
757+ (; A_indices, compressed_indices, pos_Bc) = result
758758 nzA = nonzeros (A)
759759 for k in 1 : pos_Bc
760760 nzA[A_indices[k]] = Bc[compressed_indices[k]]
@@ -774,7 +774,6 @@ function decompress!(
774774 result:: TreeSetBicoloringResult ,
775775) where {R<: Real }
776776 (;
777- ag,
778777 symmetric_color,
779778 symmetric_to_row,
780779 symmetric_to_column,
@@ -783,7 +782,6 @@ function decompress!(
783782 nt,
784783 buffer,
785784 ) = result
786- (; S) = ag
787785
788786 m, n = size (A)
789787 fill! (A, zero (R))
@@ -801,6 +799,7 @@ function decompress!(
801799
802800 # Reset the buffer to zero for all vertices in the tree (except the root)
803801 for pos in first: last
802+ (vertex, _) = reverse_bfs_orders[pos]
804803 buffer_right_type[vertex] = zero (R)
805804 end
806805 # Reset the buffer to zero for the root vertex
@@ -831,7 +830,6 @@ function decompress!(
831830 result:: TreeSetBicoloringResult ,
832831) where {R<: Real }
833832 (;
834- ag,
835833 symmetric_color,
836834 symmetric_to_column,
837835 symmetric_to_row,
@@ -841,7 +839,6 @@ function decompress!(
841839 A_indices,
842840 buffer,
843841 ) = result
844- (; S) = ag
845842
846843 m, n = size (A)
847844 A_colptr = A. colptr
@@ -864,6 +861,7 @@ function decompress!(
864861
865862 # Reset the buffer to zero for all vertices in the tree (except the root)
866863 for pos in first: last
864+ (vertex, _) = reverse_bfs_orders[pos]
867865 buffer_right_type[vertex] = zero (R)
868866 end
869867 # Reset the buffer to zero for the root vertex
0 commit comments