Network Flow Concepts (Source, Sink, Cut)
Get to grips with network flow for NSW Year 12 Mathematics Standard 2. In this topic you read a directed network whose edges carry capacities, pick out the source (where flow only leaves) and the sink (where flow only arrives), and add the inflow and outflow at each vertex.
You will learn what a cut is and how to find its capacity by adding the edges that cross from the source side to the sink side β a core Standard 2 skill for modelling water pipes, traffic, power lines and delivery routes, and the foundation for maximum-flow problems later in the course.
Theory
A flow network is a directed diagram whose edges carry capacities. This Year 12 Standard 2 (NSW) guide shows how to identify the source and sink, read edge capacities, add the inflow and outflow at a vertex, and find the capacity of a cut that separates the source side from the sink side.
A flow network is a directed diagram: each edge is an arrow that shows the allowed direction of flow, and the number on it is its capacity β the most that can pass along that edge (litres per minute, cars per hour, megabits per second, and so on).
The source \(S\) is the vertex where flow only leaves (inflow \(=0\), outflow \(>0\)); the sink \(T\) is where flow only arrives (outflow \(=0\), inflow \(>0\)). At any other vertex the inflow is the total capacity of the arrows pointing in and the outflow is the total capacity of the arrows pointing out.
A cut divides the vertices into two groups β one holding the source, the other holding the sink. Its capacity is the sum of the capacities of the edges directed from the source side to the sink side. Along any single path from \(S\) to \(T\), the flow can never exceed the smallest capacity on that path.
Inflow and outflow at a vertex \(v\) add up the capacities of its arrows:
The source and sink are the special vertices:
The capacity of a cut adds only the forward-crossing edges (source side \(\to\) sink side):
How to read a flow network
- Find the source and sink. The source has no arrow pointing in; the sink has no arrow pointing out.
- Read a capacity straight off the arrow β the number is the maximum flow allowed in the arrowβs direction.
- Add inflow / outflow at a vertex by totalling the capacities of the arrows in / out.
- Capacity of a cut: split the vertices so \(S\) and \(T\) are on opposite sides, then add the capacities of the edges directed from the source side to the sink side (ignore any backward edge).
The source has no arrow in; the sink has no arrow out.
| \(\text{inflow}(S)\) | \(=\) | \(0\) |
| \(\Rightarrow S\) | \(\) | \(\text{ is the source}\) |
| \(\text{outflow}(T)\) | \(=\) | \(0\) |
| \(\Rightarrow T\) | \(\) | \(\text{ is the sink}\) |
| \(\text{capacity }A\to T\) | \(=\) | \(7\ \text{kL/h}\) |
Add the arrows leaving \(S\); a path is limited by its smallest capacity.
| \(\text{outflow}(S)\) | \(=\) | \(10+8\) |
| \(\) | \(=\) | \(18\ \text{parcels/h}\) |
| \(\text{path }S\to A\to T\) | \(=\) | \(\min(10,6)\) |
| \(\) | \(=\) | \(6\ \text{parcels/h}\) |
Add only the arrows directed from the source side to the sink side.
| \(S\to B\) | \(=\) | \(9\) |
| \(A\to B\) | \(=\) | \(3\) |
| \(A\to T\) | \(=\) | \(6\) |
| \(\text{cut capacity}\) | \(=\) | \(9+3+6\) |
| \(\) | \(=\) | \(18\ \text{MW}\) |
Each row is an arrow From\(\to\)To; then add the forward crossers.
| \(\text{no arrow leaves }T\) | \(\Rightarrow\) | \(T\text{ is the sink}\) |
| \(\text{crossers}\) | \(:\) | \(S\to B,\ A\to B,\ A\to T\) |
| \(\text{cut capacity}\) | \(=\) | \(4+3+6\) |
| \(\) | \(=\) | \(13\ \text{containers/day}\) |
Common pitfalls
Frequently asked questions
What is a source and a sink in a flow network?
The source is the vertex where flow only leaves, so no arrow points into it; the sink is the vertex where flow only arrives, so no arrow points out of it. In a diagram the source is usually shown in green and the sink in red.
How do you find the capacity of an edge?
Read the number printed on the arrow. It is the edge's capacity, meaning the maximum amount that can flow along it in the direction the arrow points. The units depend on the context, such as litres per minute or cars per hour.
What is a cut in a network?
A cut divides all the vertices into two groups so that the source is in one group and the sink is in the other. Every vertex belongs to exactly one side. Its purpose is to measure how much flow can cross from the source side to the sink side.
How do you calculate the capacity of a cut?
Add together the capacities of only the edges that are directed from the source side to the sink side. Edges that point backwards, from the sink side to the source side, are not included in the total.
What does inflow and outflow mean at a vertex?
Inflow is the total capacity of all the arrows pointing into a vertex, and outflow is the total capacity of all the arrows pointing out of it. The source has inflow zero and the sink has outflow zero.
Why can't flow along a path be more than the smallest capacity?
Every edge on the path is a limit, so the whole path can only carry as much as its weakest link. The smallest capacity on the path is the bottleneck, and no more than that amount can travel all the way from the source to the sink along it.