Vizing's theorem
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 edges, at least colors are needed. The theorem says that 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 colors and those that need . 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 for a graph .[6]
Edge coloring can be restated as vertex coloring. The line graph of has one vertex for each edge of , and two of its vertices are joined when the corresponding edges of share a vertex. So equals the chromatic number of the line graph, which is the fewest colors needed for its vertices so that joined vertices differ.[7]
The degree of a vertex is the number of edges that touch it. The maximum degree is the largest degree in the graph. All edges at a vertex of degree meet one another, so any proper edge coloring needs at least 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 colors is therefore a way of splitting the edges into matchings.
Statement
For every simple graph ,
Here is the chromatic index and 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 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 .
- A graph is class 2 if .
Overfull graphs
A counting argument proves that some graphs are class 2. In a graph with vertices, a matching has at most edges, because each edge uses two vertices and no vertex is used twice. So colors can cover at most edges:
Here is the number of edges and means rounded down. Graphs with this many edges are called overfull.[8]
Two families of class 2 graphs follow directly.
- An odd cycle with vertices has edges, but .
- The complete graph with odd has edges, which is more than .
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 , yet it is class 2.[8] Seymour showed that whether a graph contains an overfull subgraph of maximum degree 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 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 | 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 | 1 | Kőnig's line coloring theorem | ||
| Complete graph with odd, | 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 colors.[5] Every vertex has at most edges, so at least one of the colors is missing there. Such a color is called free at that vertex.[5]
To color a new edge , the easy case is a color free at both and . 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 , so that the uncolored edge moves to a place where a free color fits.
Proof
The proof below follows the constructive version by J. Misra and David Gries.[5]
Terms
Fix colors. Suppose some edges are already properly colored and the edge 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 .
- For colors and , the -path is the longest path through that uses only edges colored or . If is free at , the colors alternate along the path and is one of its ends.
- A fan is a list of distinct neighbors of . The edge is uncolored, and for each vertex in the list except , the color of the edge from to the next vertex is free at .
A fan is maximal if it cannot be extended. To build one, start with and keep appending any neighbor of , not yet in the list, whose edge has a color free at the last vertex.[5]
The coloring step
- Build a maximal fan with .
- Pick a color free at and a color free at .
- Invert the -path: change every on it to and every to . Afterward is free at .
- Find a vertex in the fan such that is still a fan and is free at .
- Rotate the fan : give each edge the color of the next edge , and uncolor .
- Color with .
Each step colors one more edge and keeps the coloring proper. Repeating it once per edge colors the whole graph with colors.[5]
Why inversion keeps the coloring proper
Inversion changes only edges on the -path.[5]
- An inner vertex of the path has one edge and one 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 was free at , either was already free there or the path's first edge turns from to , which frees .
Why a suitable vertex w exists
There are two cases, judged before the inversion.[5]
- No fan edge has color . Since the fan is maximal and is free at , no edge at has color . So is free at , the -path is empty, and works.
- Some fan edge has color . By the fan rule, is free at , the vertex just before .
- If is not on the -path, inversion does not touch the colors at , so stays free there and works.
- If is on the path, it is the far end, since is free there. Inversion turns to and frees at , so the list is still a fan. Vertex is not on the path, so stays free at and works.
Why rotation keeps the coloring proper
Rotation changes only fan edges.[5]
- The set of colors at stays the same, because the colors only move between edges at .
- Vertex loses its fan-edge color and gains none.
- Each other fan vertex gets the color of , which was free at by the fan rule.
After rotation, is free at both and , so coloring with keeps the coloring proper.[5]
Running time
A fan has at most vertices, and an alternating path has fewer than edges, where is the number of vertices. Vizing's original proof therefore gives an algorithm that runs in time for a graph with edges.[1]
Algorithms and complexity
Faster algorithms
Later work sped up the search for a -edge coloring. Algorithm papers call the fan a Vizing fan and the alternating path a Vizing chain.[1] In the table, hides factors that are powers of .
| Year | Authors | Time | Notes |
|---|---|---|---|
| 1964 | Vizing | From the original proof | |
| 1982 and 1985 | Arjomandi; Gabow, Nishizeki, Kariv, Leven, and Terada | Found independently | |
| 2019 | Sinnamon | Simplified the 1980s methods | |
| 2024 | Assadi | Randomized | |
| 2024 | Bhattacharya, Carmon, Costa, Solomon, and Zhang | Randomized | |
| 2024 | Bhattacharya, Costa, Solomon, and Zhang | Follow-up to the two above | |
| 2024 | Assadi, Behnezhad, Bhattacharya, Costa, Solomon, and Zhang | 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 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, 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 is the largest number of edges joining any one pair of vertices.[2] Vizing's 1964 paper treated multigraphs without loops and proved
The simple-graph theorem is the case .[9][1]
Claude Shannon had shown in 1949 that every multigraph without loops can be edge colored with colors, whatever its multiplicity.[9][1] Shannon multigraphs show that both bounds can be reached.[1]
The simplest example has three vertices with parallel edges between each pair. Each vertex has degree , and any two of the edges share a vertex, so .[2] Since , this also equals .
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 vertices, the fraction that are class 1 tends to 1 as 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 are class 1, and he gave planar class 2 examples for each from 2 to 5.[10][11] In 1968 he conjectured that planar graphs with 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 | 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 .[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
- Vizing's Theorem in Near-Linear Time, Assadi, Behnezhad, Bhattacharya, Costa, Solomon, and Zhang, arXiv, 2024.
- Section 17.2. Vizing's Theorem (notes on Bondy and Murty, Graph Theory), East Tennessee State University, 2022.
- The NP-Completeness of Edge-Coloring, I. Holyer, SIAM Journal on Computing, 1981.
- On the Chromatic Index of Almost All Graphs, P. Erdős and R. J. Wilson, Journal of Combinatorial Theory, Series B, 1977.
- A Constructive Proof of Vizing's Theorem, J. Misra and D. Gries, University of Texas at Austin, 1990.
- The logical strength of Kőnig's edge coloring theorem, arXiv, 2020.
- Proof of the List Coloring Conjecture for line perfect multigraphs, A. Gordeev, arXiv, 2019.
- Pseudo-multifan and Lollipop, arXiv, 2021.
- Appendix A: Vizing's Two Fundamental Papers (Graph Edge Coloring: Vizing's Theorem and Goldberg's Conjecture), Stiebitz, Scheide, Toft, and Favrholdt, Wiley, 2012.
- A sufficient condition for a plane graph with maximum degree 6 to be class 1, Y. Wang and L. Xu, Discrete Applied Mathematics, 2013.
- A sufficient condition for edge 6-colorable planar graphs with maximum degree 6, Discrete Applied Mathematics, 2022.
- Every Planar Graph with Maximum Degree 7 Is of Class 1, L. Zhang, Graphs and Combinatorics, 2000.
- Generalizing Vizing's Theorem to Multigraphs, M. G. Dunaway, Portland State University.
- A constructive proof of Vizing's theorem, J. Misra and D. Gries, Information Processing Letters 41(3), 131 to 133, 1992.
