Skip to content

Commit b11ee87

Browse files
committed
Union is called in docs
1 parent 28bcf31 commit b11ee87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Nonlinear/ReverseAD/Coloring/Coloring.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ end
4545

4646
Base.collect(v::IndexedSet) = v.nzidx[1:v.nnz]
4747

48+
function Base.union!(v::IndexedSet, s)
49+
for x in s
50+
push!(v, x)
51+
end
52+
return
53+
end
54+
4855
# compact storage for an undirected graph
4956
# neighbors of vertex i start at adjlist[offsets[i]]
5057
struct UndirectedGraph

0 commit comments

Comments
 (0)