We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d554b68 commit 39b3fa8Copy full SHA for 39b3fa8
1 file changed
src/coloring.jl
@@ -456,10 +456,10 @@ function TreeSet(
456
# Maintain a record of visited trees to efficiently reset found_in_tree
457
visited_trees = Vector{T}(undef, nt)
458
459
+ # Number of trees visited for each column of S
460
+ nt_visited = 0
461
rvS = rowvals(S)
462
for j in axes(S, 2)
- # Number of visited trees that contain vertex j
- ntree_visited = 0
463
464
for pos in nzrange(S, j)
465
i = rvS[pos]
@@ -503,6 +503,7 @@ function TreeSet(
503
for t in 1:nt_visited
504
found_in_tree[visited_trees[t]] = false
505
end
506
507
508
509
# Compute a shifted cumulative sum of tree_edge_indices, starting from one
0 commit comments