Graph Terminology for Network Flows

Introduces the fundamental graph-theoretic vocabulary used in network flow problems: directed graphs, nodes, arcs, in-degree and out-degree, and the special role of source, sink, intermediate nodes, and arc capacities in a flow network.

Step 1 of 157%

Tutorial

Directed Graphs, Nodes, and Arcs

A directed graph (or digraph) is a pair G=(N,A)G = (N, A) where NN is a finite set of nodes (also called vertices) and AA is a set of arcs (also called directed edges). Each arc is an ordered pair (i,j)(i, j) with i,jNi, j \in N, representing a directed connection from ii to jj.

The order matters: the arc (i,j)(i, j) is different from the arc (j,i)(j, i).

For example, the digraph with

N={1,2,3,4},A={(1,2), (1,3), (2,4), (3,4)}N = \{1, 2, 3, 4\}, \qquad A = \{(1,2),\ (1,3),\ (2,4),\ (3,4)\}

has 44 nodes and 44 arcs. The arc (1,2)(1,2) points from node 11 to node 22, while (2,4)(2,4) points from node 22 to node 44.

We write N|N| for the number of nodes and A|A| for the number of arcs.

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