The chromatic polynomial is a graph polynomial studied in algebraic graph theory, a branch of mathematics. It counts the number of graph colorings as a function of the number of colors and was originally defined by George David Birkhoff to study the four color problem. It was generalised to the Tutte polynomial by Hassler Whitney and W. T. Tutte, linking it to the Potts model of statistical physics.
George David Birkhoff introduced the chromatic polynomial in 1912, defining it only for planar graphs, in an attempt to prove the four color theorem. If
P(G,k)
P(G,4)>0
Hassler Whitney generalised Birkhoff’s polynomial from the planar case to general graphs in 1932. In 1968, Ronald C. Read asked which polynomials are the chromatic polynomials of some graph, a question that remains open, and introduced the concept of chromatically equivalent graphs. Today, chromatic polynomials are one of the central objects of algebraic graph theory.[1]
For a graph G,
P(G,k)
PG(k)
\chiG(k)
\piG(k)
P(G,x)
P(G,k)
P3
k-1
k-1
P(P3,k)=k ⋅ (k-1) ⋅ (k-1)
P3
2=x | |
P(P | |
3,x)=x(x-1) |
3-2x2+x
See main article: Deletion–contraction formula. The fact that the number of k-colorings is a polynomial in k follows from a recurrence relation called the deletion–contraction recurrence or Fundamental Reduction Theorem. It is based on edge contraction: for a pair of vertices
u
v
G/uv
u
v
G-uv
uv
P(G,k)=P(G-uv,k)-P(G/uv,k)
u
v
G+uv
uv
P(G,k)=P(G+uv,k)+P(G/uv,k)
u
v
G+uv
G/uv
G+uv
G/uv
u
v
The chromatic polynomial can hence be recursively defined as
P(G,x)=xn
P(G,x)=P(G-uv,x)-P(G/uv,x)
uv
kn
P(G,x)
\left\{(0,P(G,0)),(1,P(G,1)),\ldots,(n,P(G,n))\right\}.
TG(x,y)
Triangle K3 | x(x-1)(x-2) | |
Complete graph Kn | x(x-1)(x-2) … (x-(n-1)) | |
Edgeless graph \overlineKn | xn | |
Path graph Pn | x(x-1)n-1 | |
Any tree on n vertices | x(x-1)n-1 | |
Cycle Cn | (x-1)n+(-1)n(x-1) | |
x(x-1)(x-2)\left(x7-12x6+67x5-230x4+529x3-814x2+775x-352\right) |
For fixed G on n vertices, the chromatic polynomial
P(G,x)
The chromatic polynomial includes at least as much information about the colorability of G as does the chromatic number. Indeed, the chromatic number is the smallest positive integer that is not a zero of the chromatic polynomial,
\chi(G)=min\{k\inN:P(G,k)>0\}.
The polynomial evaluated at
-1
P(G,-1)
(-1)|V(G)|
The derivative evaluated at 1,
P'(G,1)
\theta(G)
G1,\ldots,Gc
x0,\ldots,xc-1
xc,\ldots,xn
xn
xn-1
-|E(G)|.
We prove this via induction on the number of edges on a simple graph G with
n
k
k=0
P(G,x)=xn
xn-1
0
k=1
P(G,x)=xn-xn-1
xn-1
-1=-|E(G)|
k=0,1,2,\ldots,(k-1)
k
LetP(G,x)=P(G-e,x)-P(G/e,x),
P(G-e,x)=xn-an-1xn-1+an-2xn-2- … ,
P(G/e,x)=xn-1-bn-2xn-2+bn-3xn-3- … .
P(G,x)=xn-(an-1+1)xn-1+ …
G-e
an-1=k-1
an-1+1=k
x1
(-1)n-1
\scriptstyleP(G,x)=P(G1,x)P(G2,x) … P(Gc,x)
The last property is generalized by the fact that if G is a k-clique-sum of
G1
G2
P(G,x)=
P(G1,x)P(G2,x) | |
x(x-1) … (x-k+1) |
.
A graph G with n vertices is a tree if and only if
P(G,x)=x(x-1)n-1.
Two graphs are said to be chromatically equivalent if they have the same chromatic polynomial. Isomorphic graphs have the same chromatic polynomial, but non-isomorphic graphs can be chromatically equivalent. For example, all trees on n vertices have the same chromatic polynomial.In particular,
(x-1)3x
A graph is chromatically unique if it is determined by its chromatic polynomial, up to isomorphism. In other words, G is chromatically unique, then
P(G,x)=P(H,x)
A root (or zero) of a chromatic polynomial, called a “chromatic root”, is a value x where
P(G,x)=0
P(G,x)>0
\varphi
\varphi2
Gn
2) | |
P(G | |
n,\varphi |
\leq\varphi5-n.
While the real line thus has large parts that contain no chromatic roots for any graph, every point in the complex plane is arbitrarily close to a chromatic root in the sense that there exists an infinite family of graphs whose chromatic roots are dense in the complex plane.
For a graph G on n vertices, let
ek
ek
k! ⋅ ek
P(G,x)=
x | |
\sum | |
k=0 |
\binom{x}{k}k! ⋅ ek=
x | |
\sum | |
k=0 |
(x)k ⋅ ek,
(x)k=x(x-1)(x-2) … (x-k+1)
ek
P(G,x)
1,(x)1,(x)2,(x)3,\ldots
Let
ak
P(G,x)
1,x,x2,x3,\ldots
P(G,x)=
n | |
\sum | |
k=0 |
akxk
ak=
n | |
\sum | |
j=0 |
(-1)j-k\begin{bmatrix}j\\k\end{bmatrix}ej
ek=
n | |
\sum | |
j=0 |
\begin{Bmatrix}j\\k\end{Bmatrix}aj.
The chromatic polynomial is categorified by a homology theory closely related to Khovanov homology.
Above: | Chromatic polynomial | ||||||||||||||||||||||||||
Abovestyle: | background: #DD9; font-size: 125%; | ||||||||||||||||||||||||||
Labelstyle: | font-weight:normal | ||||||||||||||||||||||||||
Label1: | Input | ||||||||||||||||||||||||||
Data1: | Graph G with n vertices. | ||||||||||||||||||||||||||
Label2: | Output | ||||||||||||||||||||||||||
Data2: | Coefficients of P(G,x) | ||||||||||||||||||||||||||
Label3: | Running time | ||||||||||||||||||||||||||
Data3: | O(2nnr) r | ||||||||||||||||||||||||||
Label4: | Complexity | ||||||||||||||||||||||||||
Data4: |
| ||||||||||||||||||||||||||
Label5: | Reduction from | ||||||||||||||||||||||||||
Data5: |
}}
|
Computational problems associated with the chromatic polynomial include
P(G,x)
P(G,x)
The first problem is more general because if we knew the coefficients of
P(G,x)
For some basic graph classes, closed formulas for the chromatic polynomial are known. For instance this is true for trees and cliques, as listed in the table above.
Polynomial time algorithms are known for computing the chromatic polynomial for wider classes of graphs, including chordal graphs[2] and graphs of bounded clique-width.[3] The latter class includes cographs and graphs of bounded tree-width, such as outerplanar graphs.
The deletion-contraction recurrence gives a way of computing the chromatic polynomial, called the deletion–contraction algorithm. In the first form (with a minus), the recurrence terminates in a collection of empty graphs. In the second form (with a plus), it terminates in a collection of complete graphs. This forms the basis of many algorithms for graph coloring. The ChromaticPolynomial function in the Combinatorica package of the computer algebra system Mathematica uses the second recurrence if the graph is dense, and the first recurrence if the graph is sparse. The worst case running time of either formula satisfies the same recurrence relation as the Fibonacci numbers, so in the worst case, the algorithm runs in time within a polynomial factor of
\varphin+m=\left(
1+\sqrt{5 | |
on a graph with n vertices and m edges. The analysis can be improved to within a polynomial factor of the number
t(G)
There is a natural geometric perspective on graph colorings by observing that, as an assignment of natural numbers to each vertex, a graph coloring is a vector in the integer lattice.Since two vertices
i
j
i
j
d:x | |
\{x\inR | |
i=x |
j\}
k
[0,k]n
[0,k]
The problem of computing the number of 3-colorings of a given graph is a canonical example of a
-complete problem, so the problem of computing the coefficients of the chromatic polynomial is #P-hard. Similarly, evaluating
P(G,3)
k=0,1,2
P(G,k)
k>3
k=3
P(G,x)
In the expansion
P(G,x)=a1x+
2+ … | |
a | |
2x |
n, | |
+a | |
nx |
the coefficient
an
No approximation algorithms for computing
P(G,x)
k=3,4,\ldots
P(G,x)