Flow networks, cuts and capacity
Discover how flow networks model water, traffic and data in Year 12 General Mathematics for Queensland (QCAA). Whether it is SEQ Water moving supply between dams and treatment plants or cars streaming out of a stadium car park after a game, each pipe or road has a limit, and planners need to know where the system will jam.
You will learn to pick out the source and sink, read edge capacities, recognise a valid cut and work out its capacity, adding only the edges that point from the source side to the sink side. Comparing cuts shows where the bottleneck is, which leads straight into finding the maximum flow and the minimum cut next.
Theory
Pipes, roads and data links can only carry so much. This Year 12 General Mathematics guide for Queensland students explains flow networks, the source and sink, edge capacities, what a cut is and how to find the capacity of a cut, counting only the edges that point from the source side to the sink side.
A flow network is a directed network that carries something, such as water, traffic or data, from one place to another. Each edge has an arrow showing the direction of flow and a number called its capacity: the most that edge can carry, for example \(8\) litres per second. The source \(S\) is the vertex where the flow starts (edges only leave it). The sink \(T\) is where the flow ends (edges only arrive at it).
A cut is a line drawn right across the network that splits the vertices into two groups: the source side, which contains \(S\), and the sink side, which contains \(T\). Because the two are separated, every route from \(S\) to \(T\) has to cross the cut.
The capacity of a cut is the total of the capacities of the edges that cross it going from the source side to the sink side. An edge that crosses the other way, from the sink side back to the source side, is not counted. Of the cuts you compare, the one with the smallest capacity is the minimum cut. No flow from \(S\) to \(T\) can be bigger than the capacity of any cut, which is why the smallest cut matters.
The capacity of a cut adds the forward edges only:
Two cuts are always easy to read off: the cut around the source alone and the cut around the sink alone.
How to find the capacity of a cut
- Find the two sides. The source side is every vertex on the same side of the cut as \(S\). The sink side is every vertex on the same side as \(T\).
- Check it is a cut. \(S\) and \(T\) must be on opposite sides, so every route from \(S\) to \(T\) crosses the line.
- List the edges that cross. For each one, look at its arrow. If it goes from the source side to the sink side, count it. If it goes from the sink side back to the source side, leave it out.
- Add the counted capacities and give the units.
Comparing several cuts
- Find the capacity of each cut you are given, one cut at a time.
- The smallest of these capacities belongs to the minimum cut among them. The flow through the network cannot be more than this value.
Arrows only leave the source and only arrive at the sink.
| \(\text{leaving } S\) | \(=\) | \(7 + 12\) |
| \(\) | \(=\) | \(19\ \text{vehicles/min}\) |
| \(\text{entering } T\) | \(=\) | \(10 + 5\) |
| \(\) | \(=\) | \(15\ \text{vehicles/min}\) |
(i) \(S\) is the source and \(T\) is the sink. (ii) The road from \(S\) to \(B\) can carry at most \(12\) vehicles per minute. (iii) 19 vehicles per minute can leave \(S\), but only 15 can enter \(T\). So no more than 15 vehicles per minute can ever reach the exit.
Name the source side, then add the edges that point from it to the sink side.
| \(\text{source side}\) | \(=\) | \(\{A, S\}\) |
| \(\text{sink side}\) | \(=\) | \(\{B, T\}\) |
| \(\text{counted}\) | \(:\) | \(S\to B\ (6),\ A\to B\ (5),\ A\to T\ (8)\) |
| \(\text{capacity}\) | \(=\) | \(6 + 5 + 8\) |
| \(\) | \(=\) | \(19\ \text{L/s}\) |
The cut has \(S\) and \(A\) on the source side. Three pipes cross it, all forwards, so its capacity is 19 L/s. The pipe \(S\to A\) does not cross the cut, so it is not part of it.
Three channels cross the line. Check the direction of each one.
| \(\text{source side}\) | \(=\) | \(\{B, S\}\) |
| \(\text{sink side}\) | \(=\) | \(\{A, C, T\}\) |
| \(\text{counted}\) | \(:\) | \(S\to A\ (15),\ B\to C\ (9)\) |
| \(\text{not counted}\) | \(:\) | \(A\to B\ (4)\ \text{points back}\) |
| \(\text{capacity}\) | \(=\) | \(15 + 9\) |
| \(\) | \(=\) | \(24\ \text{ML/day}\) |
The capacity of the cut is 24 ML/day. The channel \(A\to B\) crosses the line, but it flows from the sink side back to the source side, so it is not added. Adding it would give the wrong answer \(28\).
Work through the cuts one at a time, listing the forward edges each one crosses.
\(C_1\) crosses \(S\to A\) and \(S\to B\). \(C_2\) crosses \(A\to T\), \(A\to C\) and \(B\to C\). \(C_3\) crosses \(A\to T\) and \(C\to T\).
| \(C_1\) | \(:\) | \(11 + 8 = 19\) |
| \(C_2\) | \(:\) | \(9 + 4 + 10 = 23\) |
| \(C_3\) | \(:\) | \(9 + 6 = 15\) |
(i) \(C_1 = 19\), \(C_2 = 23\) and \(C_3 = 15\) Gb/s. (ii) \(C_3\) is the smallest of the three. It crosses only two links, but that is not why: it has the smallest total. (iii) All the data must cross \(C_3\), so the flow from \(S\) to \(T\) can be at most 15 Gb/s.
Common pitfalls
Frequently asked questions
What is the source and the sink in a flow network?
The source is the vertex where the flow starts, so edges only leave it. The sink is the vertex where the flow finishes, so edges only arrive at it. They are usually labelled S and T.
What is the capacity of an edge?
It is the greatest amount the edge can carry, such as litres per second, vehicles per minute or gigabits per second. The actual flow along an edge can be anything from zero up to its capacity.
What is a cut in a flow network?
A cut is a line across the network that splits the vertices into a source side containing S and a sink side containing T, so every route from S to T crosses it.
How do you calculate the capacity of a cut?
Add the capacities of the edges that cross the cut going from the source side to the sink side. Edges that cross from the sink side back to the source side are not included.
Why are backward edges not counted in a cut?
Flow along a backward edge travels from the sink side to the source side, so it does not help carry flow towards the sink across that cut. Only the forward edges limit how much can get through.
What is the minimum cut?
It is the cut with the smallest capacity. The flow through the network can never be more than the capacity of any cut, so the minimum cut shows the tightest bottleneck.