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
Copy file name to clipboardExpand all lines: src/graph.jl
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ end
79
79
## Construct from matrices
80
80
81
81
"""
82
-
adjacency_graph(H::AbstractMatrix)
82
+
adjacency_graph(A::SparseMatrixCSC)
83
83
84
84
Return a [`Graph`](@ref) representing the nonzeros of a symmetric matrix (typically a Hessian matrix).
85
85
@@ -92,10 +92,10 @@ The adjacency graph of a symmetrix matric `A ∈ ℝ^{n × n}` is `G(A) = (V, E)
92
92
93
93
> [_What Color Is Your Jacobian? Graph Coloring for Computing Derivatives_](https://epubs.siam.org/doi/10.1137/S0036144504444711), Gebremedhin et al. (2005)
Return a [`BipartiteGraph`](@ref) representing the nonzeros of a non-symmetric matrix (typically a Jacobian matrix).
101
101
@@ -105,12 +105,19 @@ The bipartite graph of a matrix `A ∈ ℝ^{m × n}` is `Gb(A) = (V₁, V₂, E)
105
105
- `V₂ = 1:n` is the set of columns `j`
106
106
- `(i, j) ∈ E` whenever `A[i, j] ≠ 0`
107
107
108
+
When `symmetric_pattern` is `true`, this construction is more efficient.
109
+
108
110
# References
109
111
110
112
> [_What Color Is Your Jacobian? Graph Coloring for Computing Derivatives_](https://epubs.siam.org/doi/10.1137/S0036144504444711), Gebremedhin et al. (2005)
0 commit comments