Directed Networks with Capacities and Costs

Introduces the standard data of a flow network: a directed graph together with per-arc capacities and per-arc costs. Students learn to read off the capacity entering or leaving a node, compute the total cost of a flow, and check whether a flow respects the capacity bounds on every arc.

Step 1 of 157%

Tutorial

Directed Networks with Capacities

A directed network is a directed graph G=(N,A)G=(N,A) together with a capacity function u ⁣:A[0,).u\colon A \to [0,\infty). For each arc (i,j)A,(i,j)\in A, the value uij0u_{ij}\geq 0 is called the capacity of the arc — the maximum amount of flow that may be sent from ii to jj along it.

We describe a network by listing its arcs together with their capacities. For example, the network

(1,2,4),(1,3,7),(2,3,2),(2,4,5),(3,4,3)(1,2,4),\quad (1,3,7),\quad (2,3,2),\quad (2,4,5),\quad (3,4,3)

has 44 nodes and 55 arcs. The capacity of arc (1,2)(1,2) is u12=4,u_{12}=4, the capacity of arc (1,3)(1,3) is u13=7,u_{13}=7, and so on.

Given a node i,i, the arcs leaving ii are the arcs of the form (i,),(i,\,\cdot\,), and the arcs entering ii are the arcs of the form (,i).(\,\cdot\,,i). For node 22 in the network above, the arcs leaving are (2,3)(2,3) and (2,4),(2,4), and the only arc entering is (1,2).(1,2).

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle