You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionbidirectional_pattern(S::SparsityPatternCSC{T}; symmetric_pattern::Bool) where {T}
107
105
m, n =size(S)
108
106
p = m + n
109
107
nnzS =nnz(S)
@@ -175,7 +173,7 @@ function bidirectional_pattern(
175
173
return S_and_Sᵀ, edge_to_index
176
174
end
177
175
178
-
functionbuild_edge_to_index(S::SparsityPatternCSC{T}) where {T<:Integer}
176
+
functionbuild_edge_to_index(S::SparsityPatternCSC{T}) where {T}
179
177
# edge_to_index gives an index for each edge
180
178
edge_to_index =Vector{T}(undef, nnz(S))
181
179
offsets =zeros(T, S.n)
@@ -196,7 +194,7 @@ function build_edge_to_index(S::SparsityPatternCSC{T}) where {T<:Integer}
196
194
end
197
195
end
198
196
end
199
-
return edge_to_index, offsets
197
+
return edge_to_index
200
198
end
201
199
202
200
## Adjacency graph
@@ -219,7 +217,6 @@ The adjacency graph of a symmetric matrix `A ∈ ℝ^{n × n}` is `G(A) = (V, E)
219
217
220
218
- `S::SparsityPatternCSC{T}`: Underlying sparsity pattern, whose diagonal is empty whenever `has_diagonal` is `false`
221
219
- `edge_to_index::Vector{T}`: A vector mapping each nonzero of `S` to a unique edge index (ignoring diagonal and accounting for symmetry, so that `(i, j)` and `(j, i)` get the same index)
222
-
- `vertex_buffer::Vector{T}`: A buffer of length `S.n`, which is the number of vertices in the graph
223
220
224
221
# References
225
222
@@ -228,28 +225,14 @@ The adjacency graph of a symmetric matrix `A ∈ ℝ^{n × n}` is `G(A) = (V, E)
0 commit comments