Skip to content

Residual Network

Definition

For an original directed edge i→ji\to j with capacity cijc_{ij} and assigned flow xijx_{ij}, its residual capacities are cij−xijc_{ij}-x_{ij} in the forward direction and xijx_{ij} in the reverse direction. The residual network records these possibilities for increasing or cancelling current flow.


Interpretation

The residual network records, for the current flow, how the flow on each edge can still change: how much more can be sent forward, and how much of the present flow can be cancelled. It is the network in which the augmenting path algorithm searches for improvements.

An edge with flow 3 of capacity 4, and its residual version: a forward edge with spare capacity 1 and a backward edge with capacity 3 to undo flow.

The original edge carries flow 3 of capacity 4. In the residual version, the forward edge has capacity cij−xij=1c_{ij}-x_{ij}=1, the room left, and the backward edge has capacity xij=3x_{ij}=3, the flow that could be undone. The two residual capacities always add up to the original capacity, here 1+3=41+3=4.

Reverse residual capacity is essential because a good final routing may require undoing part of an initially chosen path. Take a source SS, a sink TT and vertices AA and BB, with edges S→AS\to A, S→BS\to B, A→BA\to B, A→TA\to T and B→TB\to T, all of capacity 1. If the first augmentation sends one unit along S→A→B→TS\to A\to B\to T, no route of forward edges with spare capacity remains. The residual network still has S→BS\to B, the backward direction B→AB\to A and A→TA\to T; sending one unit this way cancels the flow on A→BA\to B and reaches the maximum value 2.

A backward residual edge is neither a new connection in the original directed network nor a negative flow. Using it lowers xijx_{ij} on the original edge i→ji\to j, and never below 00, because the backward capacity is exactly xijx_{ij}; in the same way the forward capacity keeps xij≤cijx_{ij}\le c_{ij}.


Key Results

  • The course draws a connection with two directional residual labels; it must not be interpreted as equal capacity in both directions.
  • Only directions with positive residual capacity can be used by an augmenting path.
  • A forward augmentation decreases forward residual capacity and increases reverse residual capacity by the same amount.

Examples

A saturated original edge has no forward residual capacity; its backward residual direction permits cancelling its assigned flow.

  • Capacity 6 and flow 2 on A-B give residual capacities 4 forward and 2 backward.
  • Cancelling one unit changes those residual capacities to 5 forward and 1 backward.

Prerequisites

Sources

Aliases: residual graph

Last updated: 20 October 2026 03:02