Mincut
Doc is still in construction. Please check mincut.jl
in ConstraintModels.jl
for details on the implementation.
Constructing a Mincut model
Note that the Interdiction Cut problem is NP-hard.
ConstraintModels.mincut
— Functionmincut(graph::AbstractMatrix{T}; source::Int, sink::Int, interdiction::Int = 0) where T <: Number
Compute the minimum cut of a graph.
Arguments:
graph
: Any matrix <: AbstractMatrix that describes the capacities of the graphsource
: Id of the source node; must be setsink
: Id of the sink node; must be setinterdiction
: indicates the number of forbidden links