File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,15 @@ import Graphs
30
30
import JuMPIn: get_bipartite_incidence_graph, IncidenceGraphInterface
31
31
32
32
"""
33
- incidence_matrix
33
+ incidence_matrix(constraints, variables)::SparseMatrixCSC
34
34
35
35
Return a `SparseMatrixCSC` with entries corresponding to incidence
36
36
between the provided constraints and variables.
37
37
38
- Rows correspond to constraints and columns correspond to varibales.
38
+ Rows correspond to constraints, columns correspond to variables, and
39
+ matrix entries correspond to edges in the incidence graph. All matrix
40
+ entries have values of `1.0`.
41
+
39
42
"""
40
43
function incidence_matrix (
41
44
constraints:: Vector{<:JuMP.ConstraintRef} ,
@@ -57,6 +60,13 @@ function incidence_matrix(
57
60
return SparseArrays. sparse (row, col, val)
58
61
end
59
62
63
+ """
64
+ incidence_matrix(igraph::IncidenceGraphInterface)::SparseMatrixCSC
65
+
66
+ Return the incidence matrix associated with the provided
67
+ `IncidenceGraphInterface`.
68
+
69
+ """
60
70
function incidence_matrix (
61
71
igraph:: IncidenceGraphInterface
62
72
):: SparseArrays.SparseMatrixCSC
You can’t perform that action at this time.
0 commit comments