Skip to content

Commit d717c1f

Browse files
committed
Remove uncovered lines
1 parent 4d0b3b4 commit d717c1f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/coloring_compat.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,6 @@ function _hessian_color_preprocess(
6666
return I, J, result
6767
end
6868

69-
# Also handle case where we have vertices but no edges (diagonal-only Hessian)
70-
if isempty(I)
71-
# Create identity matrix pattern (diagonal only)
72-
n = length(local_indices)
73-
S = SparseArrays.spdiagm(0 => trues(n))
74-
problem = SparseMatrixColorings.ColoringProblem(;
75-
structure = :symmetric,
76-
partition = :column,
77-
)
78-
tree_result = SparseMatrixColorings.coloring(S, problem, algo)
79-
result = ColoringResult(tree_result, local_indices)
80-
# I and J are already empty, which is correct for no off-diagonal elements
81-
return I, J, result
82-
end
83-
8469
global_to_local_idx = seen_idx.nzidx # steal for storage
8570
for k in eachindex(local_indices)
8671
global_to_local_idx[local_indices[k]] = k

0 commit comments

Comments
 (0)