In graph theory, nowhere-zero flows are a special type of network flow which is related (by duality) to coloring planar graphs.
Let G = (V,E) be a directed graph and let M be an abelian group. A map φ: E → M is a flow or an M-flow if for every vertex v ∈ V, it holds that
where δ+(v) denotes the set of edges out of v and δ−(v) denotes the set of edges into v. Sometimes, this condition is referred to as Kirchhoff's law. If φ(e) ≠ 0 for every e ∈ E, we call φ a nowhere-zero flow. If M = Z is the group of integers under addition and k is a positive integer with the property that –k < φ(e) < k for every edge e, then the M-flow φ is also called a k-flow.
Let G = (V,E) be an undirected graph. An orientation of E is a modular k-flow if
for every vertex v ∈ V.
Modify a nowhere-zero flow φ on a graph G by choosing an edge e, reversing it, and then replacing φ(e) with -φ(e). After this adjustment, φ is still a nowhere-zero flow. Furthermore, if φ was originally a k-flow, then the resulting φ is also a k-flow. Thus, the existence of a nowhere-zero M-flow or a nowhere-zero k-flow is independent of the orientation of the graph. Thus, an undirected graph G is said to have a nowhere-zero M-flow or nowhere-zero k-flow if some (and thus every) orientation of G has such a flow.
More surprisingly, if M is a finite abelian group of size k, then the number of a nowhere-zero M-flows in some graph does not depend on the structure of M but only on k, the size of M. Furthermore, the existence of a M-flow coincides with the existence of a k-flow. These two results were proved by Tutte in 1953.
Let G = (V,E) be a directed bridgeless graph drawn in the plane, and assume that the regions of this drawing are properly k-colored with the colors {0, 1, 2, .., k – 1}. Now, construct a map φ: E(G) → {–(k – 1), ..., –1, 0, 1, ..., k – 1} by the following rule: if the edge e has a region of color x to the left and a region of color y to the right, then let φ(e) = x – y. It is an easy exercise to show that φ is a k-flow. Furthermore, since the regions were properly colored, φ is a nowhere-zero k-flow. It follows from this construction, that if G and G* are planar dual graphs and G* is k-colorable, then G has a nowhere-zero k-flow. Tutte proved that the converse of this statement is also true. Thus, for planar graphs, nowhere-zero flows are dual to colorings. Since nowhere-zero flows make sense for general graphs (not just graphs drawn in the plane), this study can be viewed as an extension of coloring theory for non-planar graphs.