Networks and flows
A network is a Directed graph
Let
A source is a vertex
A sink is a vertex
We will consider networks where a source and sink exist.
A flow from the source
Let
We have
The value of a flow
Let
If
If
Proof:
By Theorem, we have
Now, suppose that
Let
- For each edge
, if , there is a forward edge in with capacity . - For each edge
, if , there is a backward edge in with capacity .
The residual graph thus shows where additional flow can be added or removed. The forward edges show where additional flow can be introduced without exceeding the capacity, and the backward edges show where flow can be removed without introducing negative flow.
Let
A way to maximize flow given a network is now clear; find an augmenting path and introduce more flow along it. Specifically, it is clear that a flow of precisely the minimum capacity along the augmenting path can be introduced. We can show that by repeating this process until no augmenting path exists, always yields a maximum flow.
Let
Proof:
Let
We are thus left with a flow