Skip to main content

min_cost_flow

Function min_cost_flow 

Source
pub fn min_cost_flow(
    nodes: usize,
    supply: &[i64],
    arcs: &[Arc],
) -> Result<Solution, FlowError>
Expand description

The least-cost flow meeting supply (positive where flow starts, negative where it ends) over arcs.