networkflow
Network flow is a field of study in combinatorial optimization that analyzes the movement of a commodity through a network. The network is modeled as a directed graph with nonnegative edge capacities, and two distinguished nodes: a source and a sink. A flow assigns to each edge a nonnegative quantity representing how much of the commodity traverses that edge, subject to capacity constraints and the conservation of flow at every intermediate node (the total inflow equals the total outflow for non-terminal nodes). The central problem is to determine the maximum feasible flow from the source to the sink, known as the maximum-flow problem.
A fundamental result is the max-flow min-cut theorem, which states that the maximum flow value equals the
Variants of network flow address broader scenarios. Multi-commodity flow considers several different supplies and demands sharing
Applications span telecommunications and data networks (routing and resource allocation), transportation and logistics (traffic assignment and