aryagraph.algorithms.flow.minimum_cut#
- aryagraph.algorithms.flow.minimum_cut(g: Graph, s: Hashable, t: Hashable, capacity: str | Callable[[Hashable, Hashable, dict], Any] = 'capacity') CutResult[source]#
Minimum
s–tcut (max-flow min-cut theorem); same arguments asmaximum_flow().The source side is every node still reachable from s in the residual network of a maximum flow (the cut closest to s).
cut_edgeslists, in edge order, every edge from the source side to the sink side; their capacities add up tovalue.