Skip to main content

max_flow_timed

Function max_flow_timed 

Source
pub fn max_flow_timed(
    n: usize,
    source: usize,
    sink: usize,
    edges: &[(usize, usize, i64)],
) -> TimedMaxFlowResult
Expand description

Compute max flow with per-phase timing instrumentation.

Same as max_flow but returns a TimedMaxFlowResult with timing breakdown for each phase (relabel, pull, push, convergence check).