aryagraph.algorithms.flow.FlowResult#
- class aryagraph.algorithms.flow.FlowResult(value: Any, flow: dict)[source]#
Bases:
objectA maximum flow: its
valueandflow[u][v]on every edge (0 where unused).For an undirected edge both
flow[u][v]andflow[v][u]exist and at most one is positive. Opposite arcsu → v/v → uof a directed graph never both carry flow (it is netted out).