Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 General (Unit 3 & 4) Networks and decision mathematics 2

Flow networks, cuts and capacity

20 practice questions 0 video lessons Theory + worked examples

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.

Create a free accountTrack your progress and save your work as you go.
Create free account

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.

Key idea. To find the capacity of a cut, decide which vertices are on the source side, then add only the edges whose arrows point from the source side across to the sink side.
A flow network from source S to sink TDirected edges with capacities: S to A 9, S to B 7, B to A 3, A to C 8, C to B 2, C to T 6, B to T 10. S is the source (green) and T is the sink (red). S A B C T 9 7 3 8 2 6 10
A flow network. The source \(S\) (green) only sends flow out and the sink \(T\) (red) only receives it. Each number is the capacity of that edge.
A cut through the flow networkA dashed purple cut puts S and A on the source side. Edges S to B (7) and A to C (8) cross from the source side to the sink side and are shown in red. Edge B to A (3) points back and is shown in grey. S A B C T 9 7 3 8 2 6 10
A cut with \(S\) and \(A\) on the source side. \(S\to B\) and \(A\to C\) (red) cross forwards, so the capacity is \(7 + 8 = 15\). \(B\to A\) (grey) points back and is not counted.

The capacity of a cut adds the forward edges only:

\[\text{capacity of a cut} = \text{sum of the capacities of the edges from the source side to the sink side}\]
capacity of a cut=∑capacities of edges from the source side to the sink side

Two cuts are always easy to read off: the cut around the source alone and the cut around the sink alone.

\[\text{cut } \{S\} = \text{total capacity leaving } S \qquad \text{cut next to } T = \text{total capacity entering } T\]
cut{S}=total capacity leaving S
Bound on the flow. Every unit of flow must cross every cut, so the flow from \(S\) to \(T\) can never be more than the capacity of any cut.

How to find the capacity of a cut

  1. 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\).
  2. Check it is a cut. \(S\) and \(T\) must be on opposite sides, so every route from \(S\) to \(T\) crosses the line.
  3. 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.
  4. Add the counted capacities and give the units.

Comparing several cuts

  1. Find the capacity of each cut you are given, one cut at a time.
  2. The smallest of these capacities belongs to the minimum cut among them. The flow through the network cannot be more than this value.
Example 1 β€” Reading a flow network
The flow network shows roads from a car park \(S\) to the exit \(T\) of a Townsville stadium, with capacities in vehicles per minute. (i) Which vertex is the source and which is the sink? (ii) What does the \(12\) on \(S\to B\) mean? (iii) Find the total capacity leaving the source and the total capacity entering the sink.
Solution

Arrows only leave the source and only arrive at the sink.

Example 1 road networkRoads with capacities in vehicles per minute: S to A 7, S to B 12, B to A 6, A to T 10, B to T 5. S A B T 7 12 6 10 5
\(\text{leaving } S\)\(=\)\(7 + 12\)
\(\)\(=\)\(19\ \text{vehicles/min}\)
\(\text{entering } T\)\(=\)\(10 + 5\)
\(\)\(=\)\(15\ \text{vehicles/min}\)
19,15

(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.

Example 2 β€” The capacity of a drawn cut
Water flows through pipes from a treatment plant \(S\) to a reservoir \(T\) near Toowoomba. Capacities are in litres per second (L/s). Find the capacity of the cut shown.
Solution

Name the source side, then add the edges that point from it to the sink side.

Example 2 pipe network with a cutPipes with capacities in litres per second: S to A 14, S to B 6, A to B 5, A to T 8, B to T 12. A dashed cut separates S and A from B and T. S A B T 14 6 5 8 12
\(\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}\)
Example 2 edges counted in the cutThe edges S to B, A to B and A to T cross the cut from the source side and are shown in red. S A B T 14 6 5 8 12
capacity=19L/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.

Example 3 β€” An edge that points back
Irrigation channels near Emerald carry water from a dam \(S\) to a farm \(T\). Capacities are in megalitres per day (ML/day). Find the capacity of the cut shown.
Solution

Three channels cross the line. Check the direction of each one.

Example 3 irrigation channels with a cutChannels with capacities in megalitres per day: S to A 15, S to B 10, A to B 4, A to T 11, A to C 5, B to C 9, C to T 12. A dashed cut has S and B on one side and A, C and T on the other. S A B C T 15 10 4 11 5 9 12
\(\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}\)
capacity=24ML/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\).

Example 4 β€” Which drawn cut is smallest?
A fibre network sends data from a Gold Coast exchange \(S\) to a data centre \(T\). Capacities are in gigabits per second (Gb/s). Three cuts \(C_1\), \(C_2\) and \(C_3\) are drawn. (i) Find the capacity of each cut. (ii) Which of the three has the smallest capacity? (iii) What does this tell you about the flow of data from \(S\) to \(T\)?
Solution

Work through the cuts one at a time, listing the forward edges each one crosses.

Example 4 data network with three cutsLinks with capacities in gigabits per second: S to A 11, S to B 8, A to B 3, A to T 9, A to C 4, B to C 10, C to T 6. Three dashed cuts: C1 just after S, C2 between A, B and C, T, and C3 just before T. S A B C T 11 8 3 9 4 10 6 C1 C2 C3

\(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\)
19,23,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

Edges pointing back. Only edges going from the source side to the sink side are counted. Watch out for adding an edge that crosses the line in the opposite direction.
Edges that do not cross. An edge with both ends on the same side of the cut is not part of the cut. Watch out for adding every capacity near the line.
Lines that are not cuts. A cut must separate \(S\) from \(T\) completely. Watch out for a line that leaves some route from \(S\) to \(T\) uncrossed, or stops inside the network.

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.