SUPPORT THE WORK

# GetWiki

### chromatic polynomial

ARTICLE SUBJECTS
news  →
unix  →
wiki  →
ARTICLE TYPES
feed  →
help  →
wiki  →
ARTICLE ORIGINS
chromatic polynomial
[ temporary import ]
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
(File:Chromatic polynomial of all 3-vertex graphs BW.png|thumb|250px|right|All non-isomorphic graphs on 3 vertices and their chromatic polynomials, clockwise from the top. The independent 3-set: k^3. An edge and a single vertex: k^2(k-1). The 3-path: k(k-1)^2. The 3-clique: k(k-1)(k-2).)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.

## History

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) denotes the number of proper colorings of G with k colors then one could establish the four color theorem by showing P(G, 4)>0 for all planar graphs G. In this way he hoped to apply the powerful tools of analysis and algebra for studying the roots of polynomials to the combinatorial coloring problem.Hassler Whitney generalised Birkhoffâ€™s polynomial from the planar case to general graphs in 1932. In 1968, Read asked which polynomials are the chromatic polynomials of some graph, a question that remains open, and introduced the concept of chromatically equivalent graphs.{{harvtxt|Read|1968}} Today, chromatic polynomials are one of the central objects of algebraic graph theory.Several chapters {{harvtxt|Biggs|1993}}

## Definition

(File:Chromatic polynomial of all 3-vertex graphs BW with colorings.png|thumb|300px|right|All proper vertex colorings of vertex graphs with 3 vertices using k colors for k=0,1,2,3. The chromatic polynomial of each graph interpolates through the number of proper colorings.)For a graph G, P(G,k) counts the number of its (proper) vertex k-colorings. Other commonly used notations include P_G(k), chi_G(k), or pi_G(k).There is a unique polynomial P(G,x) which evaluated at any integer k â‰¥ 0 coincides with P(G,k); it is called the chromatic polynomial of G.For example, to color the path graph P_3 on 3 vertices with k colors, one may choose any of the k colors for the first vertex, any of the k - 1 remaining colors for the second vertex, and lastly for the third vertex, any of the k - 1 colors that are different from the second vertex's choice.Therefore, P(P_3,k) = k cdot (k-1) cdot (k-1) is the number of k-colorings of P_3.For a variable x (not necessarily integer), we thus have P(P_3,x)=x(x-1)^2=x^3-2x^2+x.(Colorings which differ only by permuting colors or by automorphisms of G are still counted as different.)

### Deletionâ€“contraction

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.{{harvtxt|Dong|Koh|Teo|2005}} It is based on edge contraction: for a pair of vertices u and v the graph G/uv is obtained by merging the two vertices and removing any edges between them. If u and v are adjacent in G, let G-uv denote the graph obtained by removing the edge uv.Then the numbers of k-colorings of these graphs satisfy:
P(G,k)=P(G-uv, k)- P(G/uv,k)
Equivalently, if u and v are not adjacent in G and G+uv is the graph with the edge uv added, then
P(G,k)= P(G+uv, k) + P(G/uv,k)
This follows from the observation that every k-coloring of G either gives different colors to u and v, or the same colors. In the first case this gives a (proper) k-coloring of G+uv, while in the second case it gives a coloring of G/uv.Conversely, every k-coloring of G can be uniquely obtained from a k-coloring of G+uv or G/uv (if u and v are not adjacent in G).The chromatic polynomial can hence be recursively defined as
P(G,x)=x^n for the edgeless graph on n vertices, and P(G,x)=P(G-uv, x)- P(G/uv,x) for a graph G with an edge uv (arbitrarily chosen).
Since the number of k-colorings of the edgeless graph is indeed k^n, it follows by induction on the number of edges that for all G, the polynomial P(G,x) coincides with the number of k-colorings at every integer point x=k. In particular, the chromatic polynomial is the unique interpolating polynomial of degree at most n through the points
left { (0, P(G, 0)), (1, P(G, 1)), cdots, (n, P(G, n)) right }.
Tutteâ€™s curiosity about which other graph invariants satisfied such recurrences led him to discover a bivariate generalization of the chromatic polynomial, the Tutte polynomial T_G(x,y).">

## Examples{| class"wikitable" |+Chromatic polynomials for certain graphs

| x(x-1)(x-2)
Complete graph K_n >| x(x-1)(x-2)cdots(x-(n-1))
Edgeless graph overline K_n >| x^n
Path graph P_n >| x(x-1)^{n-1}
Tree graph>tree on n vertices x(x-1)^{n-1}
Cycle graph>Cycle C_n (x-1)^n+(-1)^n(x-1)
Petersen graph >| x(x-1)(x-2) left (x^7-12x^6+67x^5-230x^4+529x^3-814x^2+775x-352 right)

## Properties

For fixed G on n vertices, the chromatic polynomial P(G, x) is a monic polynomial of degree exactly n, with integer coefficients.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{ kinmathbb{N} : P(G, k) > 0 }.
The polynomial evaluated at -1, that is P(G,-1), yields (-1)^{|V(G)|} times the number of acyclic orientations of G.{{harvtxt|Stanley|1973}}The derivative evaluated at 1, P'(G, 1) equals the chromatic invariant theta(G) up to sign.
If G has n vertices and c components G_1, cdots, G_c, then
• The coefficients of x^0, cdots, x^{c-1} are zeros.
• The coefficients of x^c, cdots, x^n are all non-zero and alternate in signs.
• The coefficient of x^n is 1 (the polynomial is monic).
• The coefficient of x^{n-1} is -|E(G)|.
{{Collapsible section|| title=Proof| content=We prove this via induction on the number of edges on a simple graph G with n vertices and k edges. When k = 0, G is an empty graph. Hence per definition P(G, x)= x^n. So the coefficient of x^{n-1} is 0, which implies the statement is true for an empty graph. When k = 1, as in G has just a single edge, P(G, x) = x^n - x^{n-1}. Thus coefficient of x^{n-1} is -1 = -|E(G)|. So the statement holds for k = 1. Using strong induction assume the statement is true for k = 0,1,2,...(k-1). Let G have k edges. By the contraction-deletion principle, P(G, x) = P(G-e, x) - P(G/e, x), Let P(G-e, x) = x^n - a_{n-1}x^{n-1} + a_{n-2}x^{n-2}-..., and P(G.e, x) = x^{n-1} - b_{n-2}x^{n-2} + b_{n-3}x^{n-3}-.... Hence P(G, x) = x^n - (a_{n-1} +1)x^{n-1} +....Since G-e is obtained from G by removal of just one edge e, a_{n-1} = k - 1, so a_{n-1} + 1 = k and thus the statement is true for k.}}
• The coefficient of x^1 is (-1)^{n-1} times the number of acyclic orientations that have a unique sink, at a specified, arbitrarily chosen vertex.{{harvtxt|Ellis-Monaghan|Merino|2011}}
• The absolute values of coefficients of every chromatic polynomial form a log-concave sequence.{{harvtxt|Huh|2012}}
• scriptstyle P(G, x) = P(G_1, x)P(G_2,x) cdots P(G_c,x)
The last property is generalized by the fact that if G is a k-clique-sum of G_1 and G_2 (i.e., a graph obtained by gluing the two at a clique on k vertices), then
P(G, x) = frac{P(G_1,x)P(G_2,x)}{x(x-1)cdots(x-k+1)}.
A graph G with n vertices is a tree if and only if
P(G, x) = x(x-1)^{n-1}.

### Chromatic equivalence

(File:Chromatically equivalent graphs.svg|thumb|right|250px|The three graphs with a chromatic polynomial equal to (x-2)(x-1)^3x.)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 is the chromatic polynomial of both the claw graph and the path graph on 4 vertices.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) would imply that G and H are isomorphic.All cycle graphs are chromatically unique.{{harvtxt|Chao|Whitehead|1978}}

### Chromatic roots

A root (or zero) of a chromatic polynomial, called a â€œchromatic rootâ€, is a value x where P(G, x)=0. Chromatic roots have been very well studied, in fact, Birkhoffâ€™s original motivation for defining the chromatic polynomial was to show that for planar graphs, P(G, x)>0 for x â‰¥ 4. This would have established the four color theorem.No graph can be 0-colored, so 0 is always a chromatic root. Only edgeless graphs can be 1-colored, so 1 is a chromatic root of every graph with at least one edge. On the other hand, except for these two points, no graph can have a chromatic root at a real number smaller than or equal to 32/27.{{harvtxt|Jackson|1993}} A result of Tutte connects the golden ratio phi with the study of chromatic roots, showing that chromatic roots exist very close to phi^2:If G_n is a planar triangulation of a sphere then
P(G_n,phi^2) leq phi^{5-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.{{harvtxt|Sokal|2004}}

### Colorings using all colors

For a graph G on n vertices, let e_k denote the number of colorings using exactly k colors up to renaming colors (so colorings that can be obtained from one another by permuting colors are counted as one; colorings obtained by automorphisms of G are still counted separately).In other words, e_k counts the number of partitions of the vertex set into k (non-empty) independent sets.Then k! cdot e_k counts the number of colorings using exactly k colors (with distinguishable colors).For an integer x, all x-colorings of G can be uniquely obtained by choosing an integer k â‰¤ x, choosing k colors to be used out of x available, and a coloring using exactly those k (distinguishable) colors.Therefore:
P(G,x) = sum_{k=0}^x binom{x}{k} k! cdot e_k = sum_{k=0}^x (x)_k cdot e_k,
where (x)_k = x(x-1)(x-2)cdots(x-k+1) denotes the falling factorial.Thus the numbers e_k are the coefficients of the polynomial P(G,x) in the basis 1,(x)_1,(x)_2,(x)_3,dots of falling factorials.Let a_k be the k-th coefficient of P(G,x) in the standard basis 1,x,x^2,x^3,dots, that is:
P(G,x) = sum_{k=0}^n a_k x^k
Stirling numbers give a change of basis between the standard basis and the basis of falling factorials.This implies:
a_k = sum_{j=0}^{n} (-1)^{j-k} begin{bmatrix}jkend{bmatrix} e_j   and   e_k = sum_{j=0}^n begin{Bmatrix}jkend{Bmatrix} a_j.

### Categorification

The chromatic polynomial is categorified by a homology theory closely related to Khovanov homology.{{harvtxt|Helme-Guizon|Rong|2005}}

## Algorithms

factoids

factoids
Computational problems associated with the chromatic polynomial include
• finding the chromatic polynomial P(G, x) of a given graph G;
• evaluating P(G, x) at a fixed point x for given G.
The first problem is more general because if we knew the coefficients of P(G, x) we could evaluate it at any point in polynomial time because the degree is n. The difficulty of the second type of problem depends strongly on the value of x and has been intensively studied in computational complexity. When x is a natural number, this problem is normally viewed as computing the number of x-colorings of a given graph. For example, this includes the problem #3-coloring of counting the number of 3-colorings, a canonical problem in the study of complexity of counting, complete for the counting class #P.

### Efficient algorithms

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{{harvtxt|Naor|Naor|Schaffer|1987}}. and graphs of bounded clique-width.{{harvtxt|GimÃ©nez|HlinÄ›nÃ½|Noy|2005}}; {{harvtxt|Makowsky|Rotics|Averbouch|Godlin|2006}}. The latter class includes cographs and graphs of bounded tree-width, such as outerplanar graphs.

### Deletionâ€“contraction

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.{{harvtxt|Pemmaraju|Skiena|2003}} 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
phi^{n+m}=left (frac{1+sqrt{5}}{2} right)^{n+m}in Oleft(1.62^{n+m}right),
on a graph with n vertices and m edges.{{harvtxt|Wilf|1986}} The analysis can be improved to within a polynomial factor of the number t(G) of spanning trees of the input graph.{{harvtxt|Sekine|Imai|Tani|1995}} In practice, branch and bound strategies and graph isomorphism rejection are employed to avoid some recursive calls, the running time depends on the heuristic used to pick the vertex pair.

### Cube Method

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 and j being given the same color is equivalent to the iâ€™th and jâ€™th coordinate in the coloring vector being equal, each edge can be associated with a hyperplane of the form {xin R^d:x_i=x_j}. The collection of such hyperplanes for a given graph is called its graphic arrangement. The proper colorings of a graph are those lattice points which avoid forbidden hyperplanes.Restricting to a set of k colors, the lattice points are contained in the cube [0,k]^n. In this context the chromatic polynomial counts the number of lattice points in the [0,k]-cube that avoid the graphic arrangement.

### Computational complexity

The problem of computing the number of 3-colorings of a given graph is a canonical example of a #P-complete problem, so the problem of computing the coefficients of the chromatic polynomial is #P-hard. Similarly, evaluating P(G, 3) for given G is #P-complete. On the other hand, for k=0,1,2 it is easy to compute P(G, k), so the corresponding problems are polynomial-time computable. For integers k>3 the problem is #P-hard, which is established similar to the case k=3. In fact, it is known that P(G, x) is #P-hard for all x (including negative integers and even all complex numbers) except for the three â€œeasy pointsâ€.{{harvtxt|Jaeger|Vertigan|Welsh|1990}}, based on a reduction in {{harv|Linial|1986}}. Thus, from the perspective of #P-hardness, the complexity of computing the chromatic polynomial is completely understood.In the expansion
P(G, x)= a_1 x + a_2x^2+dots +a_nx^n,
the coefficient a_n is always equal to 1, and several other properties of the coefficients are known. This raises the question if some of the coefficients are easy to compute. However the computational problem of computing ar for a fixed r â‰¥ 1 and a given graph G is #P-hard, even for bipartite planar graphs.{{harvtxt|Oxley|Welsh|2002}}No approximation algorithms for computing P(G, x) are known for any x except for the three easy points. At the integer points k=3,4,dots, the corresponding decision problem of deciding if a given graph can be k-colored is NP-hard. Such problems cannot be approximated to any multiplicative factor by a bounded-error probabilistic algorithm unless NP = RP, because any multiplicative approximation would distinguish the values 0 and 1, effectively solving the decision version in bounded-error probabilistic polynomial time. In particular, under the same assumption, this rules out the possibility of a fully polynomial time randomised approximation scheme (FPRAS). For other points, more complicated arguments are needed, and the question is the focus of active research. {{As of|2008}}, it is known that there is no FPRAS for computing P(G, x) for any x > 2, unless NP = RP holds.{{harvtxt|Goldberg|Jerrum|2008}}

{{reflist|2}}

## References

• {{Citation
first=N.|title=Algebraic Graph Theory|publisher=Cambridge University Press|year=1993|isbn=978-0-521-45897-9}}
• {{Citation
first1=C.-Y. first2=E. G.|contribution=On chromatic equivalence of graphs|title=Theory and Applications of Graphs|year=1978|volume=642|pages=121â€“131|publisher=Springer|series=Lecture Notes in Mathematics|isbn=978-3-540-08666-6}}
• {{Citation
first1= F. M. first2= K. M. first3= K. L.|title=Chromatic polynomials and chromaticity of graphs|publisher=World Scientific Publishing Company|year=2005|isbn= 978-981-256-317-0}}
• {{citation

| last1 = GimÃ©nez | first1 = O.
| last2 = HlinÄ›nÃ½ | first2 = P.
| last3 = Noy | first3 = M.
| contribution = Computing the Tutte polynomial on graphs of bounded clique-width
| doi = 10.1007/11604686_6
| pages = 59â€“68
| publisher = Springer-Verlag
| series = Lecture Notes in Computer Science
| title = Proc. 31st Int. Worksh. Graph-Theoretic Concepts in Computer Science (WG 2005)
| volume = 3787
| year = 2005| isbn = 978-3-540-31000-6
| citeseerx = 10.1.1.353.6385
}}
• {{Citation
first1= L.A. | author1-link = Leslie Ann Goldberg first2= M.|author2-link=Mark Jerrum|title= Inapproximability of the Tutte polynomial|journal=Information and Computation| doi= 10.1016/j.ic.2008.04.003 |year=2008|volume=206|pages=908|issue=7|arxiv=cs/0605140}}
• {{Citation
first1=Laure first2=Yongwu|title=A categorification of the chromatic polynomial|journal=Algebraic & Geometric Topology| doi= 10.2140/agt.2005.5.1365 |year=2005|volume=5|pages=1365â€“1388|issue=4|arxiv=math/0412264}}
• ARXIV
FIRST1=J., Milnor numbers of projective hypersurfaces and the chromatic polynomial of graphs, 2012, 1008.4749v3, cs2, math.AG,
• {{Citation| doi= 10.1017/S0963548300000705
first1= B.| title= A Zero-Free Interval for Chromatic Polynomials of Graphs|journal=Combinatorics, Probability and Computing issue= 3 |pages = 325â€“336| year= 1993}}
• {{Citation| doi= 10.1017/S0305004100068936
first1= F. first2= D. L. first3 =D. J. A. | title= On the computational complexity of the Jones and Tutte polynomials|journal=Mathematical Proceedings of the Cambridge Philosophical Society issue= 1 |pages = 35â€“53| year= 1990|bibcode= 1990MPCPS.108...35J}}
• {{Citation|doi=10.1137/0607036
first=N. | authorlink = Nati Linial|title=Hard enumeration problems in geometry and combinatorics|journal= SIAM J. Algebr. Discrete Methodsissue=2year= 1986}}
• {{citation

| last1 = Makowsky | first1 = J. A.
| last2 = Rotics | first2 = U.
| last3 = Averbouch | first3 = I.
| last4 = Godlin | first4 = B.
| contribution = Computing graph polynomials on graphs of bounded clique-width
| doi = 10.1007/11917496_18
| pages = 191â€“204
| publisher = Springer-Verlag
| series = Lecture Notes in Computer Science
| title = Proc. 32nd Int. Worksh. Graph-Theoretic Concepts in Computer Science (WG 2006)
| volume = 4271
| year = 2006| isbn = 978-3-540-48381-6
| citeseerx = 10.1.1.76.2320
}}
• {{citation

| last1 = Naor | first1 = J.
| last2 = Naor | first2 = M.
| last3 = Schaffer | first3 = A.
| contribution = Fast parallel algorithms for chordal graphs
| doi = 10.1145/28395.28433
| pages = 355â€“364
| title = Proc. 19th ACM Symp. Theory of Computing (STOC '87)
| year = 1987| isbn = 978-0897912211
}}.
• {{Citation
first1=J. G. first2=D. J. A.|title=Chromatic, flow and reliability polynomials: The complexity of their coefficients.|journal=Combinatorics, Probability and Computing|volume=11|year=2002|issue=4|pages=403â€“426| doi=10.1017/S0963548302005175}}
• {{Citation
first1=S. first2= S.|title= Computational Discrete Mathematics: Combinatorics and Graph Theory with Mathematica|publisher=Cambridge University Press|year=2003|at=section 7.4.2|isbn=978-0-521-80686-2}}
• {{Citation
first=R. C. | author-link=Ronald C. Read|title=An introduction to chromatic polynomials|journal=Journal of Combinatorial Theory|year=1968|pages=52â€“71|volume=4|doi=10.1016/S0021-9800(68)80087-0|url=http://dml.cz/bitstream/handle/10338.dmlcz/128421/CzechMathJ_43-1993-3_10.pdf}}
• {{Citation

| last1= Sekine | first1= K.
| last2= Imai | first2 = H.
| last3= Tani | first3= S.| contribution= Computing the Tutte polynomial of a graph of moderate size| title= Algorithms and Computation, 6th International Symposium, Lecture Notes in Computer Science 1004| place= Cairns, Australia, December 4â€“6, 1995| publisher = Springer|year= 1995|pages= 224â€“233
}}
• {{Citation|doi=10.1017/S0963548303006023
first=A. D. |author-link=Alan Sokal|title=Chromatic Roots are Dense in the Whole Complex PlaneCombinatorics, Probability and Computing >year=2004 volume= 13|issue=2 |arxiv=cond-mat/0012369}}
• {{Citation| doi=10.1016/0012-365X(73)90108-8
first= R. P.|title= Acyclic orientations of graphsDiscrete Mathematics (journal)>Discrete Math. pages=171â€“178|year= 1973| issue=2}}
• {{Citation
first= Vitaly I.| title= Coloring Mixed Hypergraphs: Theory, Algorithms and Applications. | publisher= American Mathematical Society | year =2002| isbn= 978-0-8218-2812-0}}
• {{Citation
first= H. S. | author-link=Herbert Wilf| title= Algorithms and Complexity| publisher= Prenticeâ€“Hall| year =1986| isbn= 978-0-13-021973-2}}
• BOOK, Structural Analysis of Complex Networks, Graph polynomials and their applications I: The Tutte polynomial
last1=Ellis-Monaghanlast2=Merino, 0803.3079, 2011, 978-0-8176-4789-6editor-first=Matthias, en-gb, 10.1007/978-0-8176-4789-6,

• {{MathWorld | urlname=ChromaticPolynomial| title=Chromatic polynomial}}
• PlanetMath Chromatic polynomial
• Code for computing Tutte, Chromatic and Flow Polynomials by Gary Haggard, David J. Pearce and Gordon Royle: weblink

- content above as imported from Wikipedia
- "chromatic polynomial" does not exist on GetWiki (yet)
- time: 7:26pm EDT - Sun, Sep 22 2019
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
GETWIKI 19 AUG 2014
CONNECT