Search topics and sections

Vizing's theorem is about coloring the edges of a network so that edges meeting at a point always get different colors. If the busiest point has Δ\Delta edges, at least Δ\Delta colors are needed. The theorem says that Δ+1\Delta + 1 colors are always enough, as long as no edge loops back to its own point and no two points are joined by more than one edge.[1]

Vadim Vizing proved the theorem in 1964, and R. P. Gupta found it independently.[2] It splits all such graphs into two groups: those that need Δ\Delta colors and those that need Δ+1\Delta + 1. Telling the two groups apart is a hard computational problem, but almost all graphs fall in the first group.[3][4]

Edge colorings and maximum degree

A graph is a set of points, called vertices, joined by lines, called edges. A graph is simple if it has no loops (edges from a vertex to itself) and no two edges join the same pair of vertices.[5]

A proper edge coloring gives each edge a color so that any two edges sharing a vertex get different colors. The smallest number of colors that works is the chromatic index, written χ′(G)\chi'(G) for a graph GG.[6]

Edge coloring can be restated as vertex coloring. The line graph of GG has one vertex for each edge of GG, and two of its vertices are joined when the corresponding edges of GG share a vertex. So χ′(G)\chi'(G) equals the chromatic number of the line graph, which is the fewest colors needed for its vertices so that joined vertices differ.[7]

A vertex of degree 41234vdegree 4
All edges at a vertex touch each other, so a vertex of degree 4 forces at least 4 colors. In general χ′(G)≥Δ(G)\chi'(G) \ge \Delta(G).

The degree of a vertex is the number of edges that touch it. The maximum degree Δ(G)\Delta(G) is the largest degree in the graph. All edges at a vertex of degree Δ\Delta meet one another, so any proper edge coloring needs at least Δ\Delta colors.[1]

The edges that share one color never touch, so they form a matching, a set of edges with no common vertex.[6] An edge coloring with kk colors is therefore a way of splitting the edges into kk matchings.

Statement

For every simple graph GG,

Δ(G)≤χ′(G)≤Δ(G)+1.\Delta(G) \le \chi'(G) \le \Delta(G) + 1.

Here χ′(G)\chi'(G) is the chromatic index and Δ(G)\Delta(G) is the maximum degree.[2] The lower bound is the counting fact above. The upper bound is Vizing's result.

The theorem needs the graph to be simple. A graph with repeated edges can need many more than Δ+1\Delta + 1 colors, as the section on multigraphs shows.[2]

Class 1 and class 2 graphs

Because only two values are possible, every simple graph falls into one of two classes.[8]

  • A graph is class 1 if χ′(G)=Δ(G)\chi'(G) = \Delta(G).
  • A graph is class 2 if χ′(G)=Δ(G)+1\chi'(G) = \Delta(G) + 1.
Class 1 and class 2 edge coloringsClass 11122Δ = 2, χ′ = 2Class 2123Δ = 2, χ′ = 3
An even cycle can be colored with Δ=2\Delta = 2 colors, but an odd cycle such as the triangle needs Δ+1=3\Delta + 1 = 3.

Overfull graphs

A counting argument proves that some graphs are class 2. In a graph with nn vertices, a matching has at most ⌊n/2⌋\lfloor n/2 \rfloor edges, because each edge uses two vertices and no vertex is used twice. So Δ\Delta colors can cover at most Δ⌊n/2⌋\Delta \lfloor n/2 \rfloor edges:

∣E(G)∣>Δ(G)⌊n2⌋⟹χ′(G)=Δ(G)+1.|E(G)| > \Delta(G) \left\lfloor \frac{n}{2} \right\rfloor \quad \Longrightarrow \quad \chi'(G) = \Delta(G) + 1.

Here ∣E(G)∣|E(G)| is the number of edges and ⌊x⌋\lfloor x \rfloor means xx rounded down. Graphs with this many edges are called overfull.[8]

Two families of class 2 graphs follow directly.

  • An odd cycle with nn vertices has nn edges, but 2⋅n−12=n−12 \cdot \frac{n-1}{2} = n - 1.
  • The complete graph KnK_n with nn odd has n(n−1)2\frac{n(n-1)}{2} edges, which is more than (n−1)⋅n−12(n-1) \cdot \frac{n-1}{2}.

Containing an overfull subgraph with the same maximum degree is enough to make a graph class 2, but it is not necessary. The Petersen graph has 10 vertices of degree 3 and 15 edges, exactly 3⋅53 \cdot 5, yet it is class 2.[8] Seymour showed that whether a graph contains an overfull subgraph of maximum degree Δ\Delta can be checked in polynomial time.[8]

Bipartite graphs

A bipartite graph has its vertices split into two sides, with every edge going from one side to the other. Dénes Kőnig proved in 1916 that the edges of a bipartite graph can always be colored with Δ\Delta colors.[6] This result is called Kőnig's line coloring theorem, and it means every bipartite graph, including every even cycle, is class 1.

Examples

Graph Δ\Delta χ′\chi' Class Reason
Cycle with an even number of edges 2 2 1 It is bipartite
Cycle with an odd number of edges 2 3 2 It is overfull
Any bipartite graph Δ\Delta Δ\Delta 1 Kőnig's line coloring theorem
Complete graph KnK_n with nn odd, n≥3n \ge 3 n−1n-1 nn 2 It is overfull
Petersen graph 3 4 2 Class 2 without being overfull

How the proof works

The proof builds the coloring one edge at a time, using Δ+1\Delta + 1 colors.[5] Every vertex has at most Δ\Delta edges, so at least one of the Δ+1\Delta + 1 colors is missing there. Such a color is called free at that vertex.[5]

To color a new edge XYXY, the easy case is a color free at both XX and YY. Otherwise the proof first recolors some nearby edges, using two moves.[5]

  • Swap the two colors along a path whose edges alternate between two colors. Such a path is a Kempe chain.
  • Shift colors around a fan, a group of edges at XX, so that the uncolored edge moves to a place where a free color fits.
Inverting an alternating cd-pathBeforedcdXabzc freec freeswap c and dAftercdcXabzd now free
Inverting a cdcd-path that starts at XX. Inner vertices keep one edge of each color, and afterward color dd is free at XX.

Proof

The proof below follows the constructive version by J. Misra and David Gries.[5]

Terms

Fix N=Δ+1N = \Delta + 1 colors. Suppose some edges are already properly colored and the edge XYXY is not.[5]

  • A color is free at a vertex if no edge at that vertex has it. Every vertex has a free color, since its degree is less than NN.
  • For colors cc and dd, the cdcd-path is the longest path through XX that uses only edges colored cc or dd. If cc is free at XX, the colors alternate along the path and XX is one of its ends.
  • A fan is a list ⟨f,…,l⟩\langle f, \dots, l \rangle of distinct neighbors of XX. The edge XfXf is uncolored, and for each vertex uu in the list except ll, the color of the edge from XX to the next vertex u+u^+ is free at uu.

A fan is maximal if it cannot be extended. To build one, start with ⟨Y⟩\langle Y \rangle and keep appending any neighbor vv of XX, not yet in the list, whose edge XvXv has a color free at the last vertex.[5]

The coloring step

  1. Build a maximal fan ⟨f,…,l⟩\langle f, \dots, l \rangle with f=Yf = Y.
  2. Pick a color cc free at XX and a color dd free at ll.
  3. Invert the cdcd-path: change every cc on it to dd and every dd to cc. Afterward dd is free at XX.
  4. Find a vertex ww in the fan such that ⟨f,…,w⟩\langle f, \dots, w \rangle is still a fan and dd is free at ww.
  5. Rotate the fan ⟨f,…,w⟩\langle f, \dots, w \rangle: give each edge XuXu the color of the next edge Xu+Xu^+, and uncolor XwXw.
  6. Color XwXw with dd.

Each step colors one more edge and keeps the coloring proper. Repeating it once per edge colors the whole graph with Δ+1\Delta + 1 colors.[5]

Why inversion keeps the coloring proper

Inversion changes only edges on the cdcd-path.[5]

  • An inner vertex of the path has one cc edge and one dd edge, both before and after.
  • At each end of the path, the new color was free there before, because the path cannot be extended.
  • Since cc was free at XX, either dd was already free there or the path's first edge turns from dd to cc, which frees dd.

Why a suitable vertex w exists

There are two cases, judged before the inversion.[5]

  1. No fan edge has color dd. Since the fan is maximal and dd is free at ll, no edge at XX has color dd. So dd is free at XX, the cdcd-path is empty, and w=lw = l works.
  2. Some fan edge Xv+Xv^+ has color dd. By the fan rule, dd is free at vv, the vertex just before v+v^+.
    • If vv is not on the cdcd-path, inversion does not touch the colors at vv, so dd stays free there and w=vw = v works.
    • If vv is on the path, it is the far end, since dd is free there. Inversion turns Xv+Xv^+ to cc and frees cc at vv, so the list is still a fan. Vertex ll is not on the path, so dd stays free at ll and w=lw = l works.

Why rotation keeps the coloring proper

Rotation changes only fan edges.[5]

  • The set of colors at XX stays the same, because the colors only move between edges at XX.
  • Vertex ww loses its fan-edge color and gains none.
  • Each other fan vertex uu gets the color of Xu+Xu^+, which was free at uu by the fan rule.

After rotation, dd is free at both XX and ww, so coloring XwXw with dd keeps the coloring proper.[5]

Fan rotation in Vizing's theoremrotateBeforeAfterXXfree: 1, 4fv2v3fv2v3free: 2free: 3free: 4uncolored23234
Rotating a fan at XX with 4 colors. Each edge takes the color of the next fan edge, and the last edge gets color 4, which is free at both v3v_3 and XX.

Running time

A fan has at most Δ\Delta vertices, and an alternating path has fewer than nn edges, where nn is the number of vertices. Vizing's original proof therefore gives an algorithm that runs in O(mn)O(mn) time for a graph with mm edges.[1]

Algorithms and complexity

Faster algorithms

Later work sped up the search for a (Δ+1)(\Delta + 1)-edge coloring. Algorithm papers call the fan a Vizing fan and the alternating path a Vizing chain.[1] In the table, O~\tilde{O} hides factors that are powers of log⁡n\log n.

Year Authors Time Notes
1964 Vizing O(mn)O(mn) From the original proof
1982 and 1985 Arjomandi; Gabow, Nishizeki, Kariv, Leven, and Terada O~(mn)\tilde{O}(m\sqrt{n}) Found independently
2019 Sinnamon O(mn)O(m\sqrt{n}) Simplified the 1980s methods
2024 Assadi O~(n2)\tilde{O}(n^2) Randomized
2024 Bhattacharya, Carmon, Costa, Solomon, and Zhang O~(mn1/3)\tilde{O}(mn^{1/3}) Randomized
2024 Bhattacharya, Costa, Solomon, and Zhang O~(mn1/4)\tilde{O}(mn^{1/4}) Follow-up to the two above
2024 Assadi, Behnezhad, Bhattacharya, Costa, Solomon, and Zhang O(mlog⁡Δ)O(m \log \Delta) Randomized, with high probability

The last row is a randomized algorithm that finishes in the stated time with probability close to 1. Its authors call it near-optimal.[1] Any algorithm must read all mm edges, so no algorithm can be much faster.

Deciding the class

Ian Holyer proved in 1981 that finding the chromatic index of a graph is NP-complete.[3] The problem stays NP-complete for cubic graphs, where every vertex has degree 3 and the question is whether 3 or 4 colors are needed.[3] So, unless P = NP, Δ+1\Delta + 1 colors is the best that a polynomial-time algorithm can guarantee for every graph.[1]

Multigraphs

A multigraph may join two vertices by several parallel edges. Its multiplicity μ(G)\mu(G) is the largest number of edges joining any one pair of vertices.[2] Vizing's 1964 paper treated multigraphs without loops and proved

χ′(G)≤Δ(G)+μ(G).\chi'(G) \le \Delta(G) + \mu(G).

The simple-graph theorem is the case μ=1\mu = 1.[9][1]

Claude Shannon had shown in 1949 that every multigraph without loops can be edge colored with ⌊3Δ/2⌋\lfloor 3\Delta/2 \rfloor colors, whatever its multiplicity.[9][1] Shannon multigraphs show that both bounds can be reached.[1]

A triangle multigraph with doubled edgesABC123456Δ = 4, μ = 2, χ′ = 6
A triangle with two parallel edges per side needs 6=Δ+μ6 = \Delta + \mu colors, the most that the multigraph bounds allow.

The simplest example has three vertices with μ\mu parallel edges between each pair. Each vertex has degree 2μ2\mu, and any two of the 3μ3\mu edges share a vertex, so χ′=3μ=Δ+μ\chi' = 3\mu = \Delta + \mu.[2] Since Δ=2μ\Delta = 2\mu, this also equals ⌊3Δ/2⌋\lfloor 3\Delta/2 \rfloor.

Structure of class 2 graphs

Critical graphs

A graph is critical if it is connected and class 2, and removing any edge lowers its chromatic index.[9] Every class 2 graph contains a critical graph with the same maximum degree, so critical graphs are used to study why a graph needs the extra color.[9]

In 1965 Vizing proved that every vertex of a critical simple graph has at least two neighbors of maximum degree. In a later paper he extended this to the result now called Vizing's adjacency lemma.[9] He also showed that every class 2 graph has at least three vertices of maximum degree.[4]

Almost all graphs are class 1

Paul Erdős and Robin Wilson proved in 1977 that almost all graphs are class 1.[4] "Almost all" means that, among all graphs on nn vertices, the fraction that are class 1 tends to 1 as nn grows.[4] Their proof shows that almost all graphs have exactly one vertex of maximum degree, and such a graph cannot be class 2 by Vizing's result above.[4]

Small graphs point the same way. Of the 143 connected graphs with at most six vertices, only eight are class 2.[4]

Planar graphs

A planar graph can be drawn in the plane with no crossing edges. Vizing proved that planar graphs with Δ≥8\Delta \ge 8 are class 1, and he gave planar class 2 examples for each Δ\Delta from 2 to 5.[10][11] In 1968 he conjectured that planar graphs with Δ\Delta equal to 6 or 7 are also class 1, a claim known as Vizing's planar graph conjecture.[12] The table shows what has been proved.[10][11]

Maximum degree Δ\Delta Planar graphs
2 to 5 Some are class 2 (Vizing's examples)
6 Open
7 All class 1, proved independently by Zhang (2000), Sanders and Zhao (2001), and Grünewald
8 or more All class 1, proved by Vizing (1965)

History

Vizing published the theorem in 1964 in the Russian journal Diskretnyi Analiz, issue 3, pages 25 to 30, under the title "On an estimate of the chromatic class of a p-graph".[9] A p-graph there is a multigraph with at most p parallel edges between two vertices, so a 1-graph is a simple graph. The paper introduced fans to prove the bound Δ+μ\Delta + \mu.[9]

This was the first of three basic papers on edge coloring that Vizing wrote in Akademgorodok in 1964 and 1965.[9] R. P. Gupta found the theorem independently during his doctoral work and announced it in a 1966 abstract in the Notices of the American Mathematical Society.[2][13]

Vizing called the chromatic index the chromatic class. The term goes back to Sainte-Laguë and was adopted by Claude Berge in his first book on graphs.[9] Alison Doig, who translated Berge's book into English, changed "class" to "index", and "index" became the usual term.[9]

In 1990 Robert Tarjan, who found the existing proofs confusing, asked Edsger Dijkstra's Austin Tuesday Afternoon Club to study the theorem. Misra and Gries then wrote the short constructive proof given above.[5] It was published in Information Processing Letters in 1992.[14]

References

  1. Vizing's Theorem in Near-Linear Time, Assadi, Behnezhad, Bhattacharya, Costa, Solomon, and Zhang, arXiv, 2024.
  2. Section 17.2. Vizing's Theorem (notes on Bondy and Murty, Graph Theory), East Tennessee State University, 2022.
  3. The NP-Completeness of Edge-Coloring, I. Holyer, SIAM Journal on Computing, 1981.
  4. On the Chromatic Index of Almost All Graphs, P. Erdős and R. J. Wilson, Journal of Combinatorial Theory, Series B, 1977.
  5. A Constructive Proof of Vizing's Theorem, J. Misra and D. Gries, University of Texas at Austin, 1990.
  6. The logical strength of Kőnig's edge coloring theorem, arXiv, 2020.
  7. Proof of the List Coloring Conjecture for line perfect multigraphs, A. Gordeev, arXiv, 2019.
  8. Pseudo-multifan and Lollipop, arXiv, 2021.
  9. Appendix A: Vizing's Two Fundamental Papers (Graph Edge Coloring: Vizing's Theorem and Goldberg's Conjecture), Stiebitz, Scheide, Toft, and Favrholdt, Wiley, 2012.
  10. A sufficient condition for a plane graph with maximum degree 6 to be class 1, Y. Wang and L. Xu, Discrete Applied Mathematics, 2013.
  11. A sufficient condition for edge 6-colorable planar graphs with maximum degree 6, Discrete Applied Mathematics, 2022.
  12. Every Planar Graph with Maximum Degree 7 Is of Class 1, L. Zhang, Graphs and Combinatorics, 2000.
  13. Generalizing Vizing's Theorem to Multigraphs, M. G. Dunaway, Portland State University.
  14. A constructive proof of Vizing's theorem, J. Misra and D. Gries, Information Processing Letters 41(3), 131 to 133, 1992.

Figure