ArticleslgStudy

computer science

Nowhere-zero flow

Nowhere-zero flow is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Nowhere-zero flow rather than just read about it. In short: In graph theory, a nowhere-zero flow or NZ flow is a network flow that is nowhere zero. It is intimately connected (by duality) to coloring planar graphs.

Key takeaways

  • Nowhere-zero flow belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Nowhere-zero flow to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Nowhere-zero flow from memory before moving on to harder problems.

Reference excerpt

In graph theory, a nowhere-zero flow or NZ flow is a network flow that is nowhere zero. It is intimately connected (by duality) to coloring planar graphs.

Definitions Let G = (V,E) be a digraph and let M be an abelian group. A map φ: E → M is an M-circulation if for every vertex v ∈ V

∑e∈δ+(v)φ(e)=∑e∈δ−(v)φ(e), 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, an M-flow, or an NZ-flow. If k is an integer and 0 < |φ(e)| < k then φ is a k-flow.

Other notions Let G = (V,E) be an undirected graph. An orientation of E is a modular k-flow if for every vertex v ∈ V we have:

|δ+(v)|≡|δ−(v)|modk.

Properties The set of M-flows does not necessarily form a group as the sum of two flows on one edge may add to 0. (Tutte 1950) A graph G has an M-flow if and only if it has a |M|-flow. As a consequence, a ℤk flow exists if and only if a k-flow exists. As a consequence if G admits a k-flow then it admits an h-flow where h≥k. Orientation independence. 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.

Flow polynomial

Let NM(G) be the number of M-flows on G. It satisfies the deletion–contraction formula:

NM(G)=NM(G/e)−NM(G∖e). Combining this with induction we can show NM(G) is a polynomial in |M|−1 where |M| is the order of the group M. We call NM(G) the flow polynomial of G and abelian group M. The above implies that two groups of equal order have an equal number of NZ flows. The order is the only group parameter that matters, not the structure of M. In particular NM1(G)=NM2(G) if |M1|=|M2|. The above results were proved by Tutte in 1953 when he was studying the Tutte polynomial, a generalization of the flow polynomial.

Flow-coloring duality

Bridgeless Planar Graphs There is a duality between k-face colorings and k-flows for bridgeless planar graphs. To see this, let G be a directed bridgeless planar graph with a proper k-face-coloring with colors {0,1,…,k−1}. Construct a map

ϕ:E(G)→{−(k−1),…,−1,0,1,…,k−1} by the following rule: if the edge e has a face of color x to the left and a face of color y to the right, then let φ(e) = x – y. Then φ is a (NZ) k-flow since x and y must be different colors. So if G and G* are planar dual graphs and G* is k-colorable (there is a coloring of the faces of G), then G has an NZ k-flow. Using induction on |E(G)| Tutte proved the converse is also true. This can be expressed concisely as:

χ(G∗)=ϕ(G), where the RHS is the flow number, the smallest k for which G permits a k-flow.

General Graphs The duality is true for general M-flows as well:

Let c be the face-coloring function with values in M. Define ϕc(e)=c(r1)−c(r2) where r1 is the face to the left of e and r2 is to the right. For every M-circulation ϕ there is a coloring function c such that ϕ=ϕc (proven by induction). c is a |E(G)|-face-coloring if and only if ϕc is an NZ M-flow (straightforward). The duality follows by combining the last two points. We can specialize to M=ℤk to obtain the similar results for k-flows discussed above. Given this duality between NZ flows and colorings, and since we can define NZ flows for arbitrary graphs (not just planar), we can use this to extend face-colorings to non-planar graphs.

Applications G is 2-face-colorable if and only if every vertex has even degree (consider NZ 2-flows). Let K=ℤ2×ℤ2 be the Klein-4 group. Then a cubic graph has a K-flow if and only if it is 3-edge-colorable. As a corollary a cubic graph that is 3-edge colorable is 4-face colorable. A graph is 4-face colorable if and only if it permits an NZ 4-flow (see Four color theorem). The Petersen graph does not have an NZ 4-flow, and this led to the 4-flow conjecture (see below). If G is a triangulation then G is 3-(vertex) colorable if and only if every vertex has even degree. By the first bullet, the dual graph G* is 2-colorable and thus bipartite and planar cubic. So G* has an NZ 3-flow and is thus 3-face colorable, making G 3-vertex colorable. Just as no graph with a loop edge has a proper vertex coloring, no graph with a bridge can have an NZ M-flow for any group M. Conversely, every bridgeless graph has an NZ ℤ-flow (a form of Robbins' theorem).

Existence of k-flows

Interesting questions arise when trying to find nowhere-zero k-flows for small values of k. The following have been proven:

Jaeger's 4-flow Theorem. Every 4-edge-connected graph has a 4-flow. Seymour's 6-flow Theorem. Every bridgeless graph has a 6-flow.

3-flow, 4-flow and 5-flow conjectures As of 2026, the following are currently unsolved (due to Tutte):

3-flow Conjecture. Every 4-edge-connected graph has a nowhere-zero 3-flow. 4-flow Conjecture. Every bridgeless graph that does not have the Petersen graph as a minor has a nowhere-zero 4-flow. 5-flow Conjecture. Every bridgeless graph has a nowhere-zero 5-flow. The converse of the 4-flow Conjecture does not hold since the complete graph K11 contains a Petersen graph and a 4-flow. For bridgeless cubic graphs with no Petersen minor, 4-flows exist by the snark theorem (Seymour, et al. 1998, not yet published). The four color theorem is equivalent to the statement that no snark is planar.

See also Cycle space Cycle double cover conjecture Four color theorem Graph coloring Edge coloring Tutte polynomial

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Nowhere-zero flow

Start with the simplest possible case. Write down what Nowhere-zero flow claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Nowhere-zero flow before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Nowhere-zero flow ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Nowhere-zero flow

In research
Nowhere-zero flow appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Nowhere-zero flow in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Nowhere-zero flow is common in secondary-school and first-year university syllabi. It links to neighbouring topics Network flow problem, so understanding it makes those chapters shorter.
In everyday life
Look for Nowhere-zero flow outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Nowhere-zero flow” →

How to study Nowhere-zero flow in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Nowhere-zero flow means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Nowhere-zero flow out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Nowhere-zero flow in simple terms?

In graph theory, a nowhere-zero flow or NZ flow is a network flow that is nowhere zero. It is intimately connected (by duality) to coloring planar graphs.

Why does Nowhere-zero flow matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Nowhere-zero flow?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Nowhere-zero flow.

Tags

  • Network flow problem

Keep exploring