Chromatic polynomial Created 2026-09-24 Updated 2026-10-14
The chromatic polynomial turns a graph coloring problem into a counting problem: how many choices remain when adjacent vertices must have different colours? For a finite simple graph and a positive integer , is the number of proper vertex colorings using a fixed, distinguished palette of colours. A colouring need not use every available colour, and exchanging two palette colours generally gives a different colouring. Although is a polynomial, its values at arbitrary noninteger arguments are not counts of colourings.
Consider the three-vertex path graph ----. Choose in ways, then in ways, then in ways: and may agree because they are not adjacent. The multiplication principle givesAdding the edge makes the three-vertex complete graph . Now must avoid both preceding colours, soWith three available colours, the path graph has 12 colourings, whereas the triangle has 6. With two colours the counts are and : the extra constraint makes the triangle impossible to colour.
For a nonempty graph, the chromatic number records only the first positive integer for which . The chromatic polynomial also counts the choices for every larger palette. For the path the chromatic number is , and for the triangle it is . Counting assignments also gives a useful interpretation for scheduling: if adjacent vertices represent tasks that must use different slots, the chromatic polynomial counts the valid assignments to named slots. Adding a conflict edge can only remove assignments.
The chromatic polynomial also remembers some of the graph's structure. For a simple graph with vertices and edges, its leading terms are ; its degree of a polynomial gives the number of vertices, and its next coefficient gives the number of edges. It does not determine the graph completely. A four-vertex path graph and a four-vertex star graph are not related by a graph isomorphism, but both are trees and have chromatic polynomial .
The early connection to map colouring appears in George D. Birkhoff's article [ref]
https://www.jstor.org/stable/1967597. A Determinant Formula for the Number of Ways of Coloring a Map, Annals of Mathematics 14 (1912–1913), pp. 42–46
. For a derivation of the counting recurrence and its leading coefficients, see Paul Johnson's MAS 341 lecture on chromatic polynomials. Chromatic polynomial after attaching a leaf Created 2026-09-24 Updated 2026-10-14
Attaching a new vertex that is a leaf of a graph multiplies the chromatic polynomial by : after colouring the old graph, the new vertex may receive any colour except its neighbour's. Starting with one vertex and repeatedly adding a leaf of a graph constructs any finite tree. Thus a tree with vertices hasIn contrast, every pair of vertices in a complete graph must receive different colours, so the multiplication principle gives the falling factorialFor positive integers this product vanishes, expressing the impossibility of assigning distinct colours to all vertices.
Chromatic polynomial determines a Turán graph Created 2026-10-14 Updated 2026-10-25
If a simple graph has the same chromatic polynomial as the Turán graph , it has the same number of vertices and edges, and the same chromatic number . It is therefore -free and attains equality in Turán's theorem. The equality case forces it to be isomorphic to .
Chromatic polynomial of a cycle 2026-10-25
For a cycle graph of length , the chromatic polynomial is . The graph triangle gives the base case . For , the deletion-contraction recurrence for the chromatic polynomial gives , since deleting an edge leaves a path graph and contracting it gives the shorter cycle graph. Substitution proves the formula by mathematical induction.
Chromatic polynomial product over components 2026-10-25
For connected components of a graph of a finite graph , choices of proper vertex colourings on different connected components of a graph are independent. The multiplication principle gives . Each nonempty factor is divisible by , hence divides the chromatic polynomial. The vanishing constant term follows by mathematical induction from the deletion-contraction recurrence for the chromatic polynomial, starting with for a nonempty graph without edges.
For a finite simple graph on vertices with edges and no graph cycle shorter than , the coefficient of in its chromatic polynomial is for . In the chromatic polynomial inclusion-exclusion formula, an edge subset containing a graph cycle of length at least has . Thus every contribution to in this range is a forest, with exactly edges. Conversely, all -edge subsets are forests, so precisely terms contribute, each with sign .
For a positive integer , the chromatic polynomial counts proper vertex colorings from a palette of labelled colors, where adjacent vertices must have different colors. The counting function agrees with a polynomial, as proved by deletion-contraction in the next part.
For a nonnegative integer , the chromatic polynomial counts the proper vertex colourings of using a fixed set of colours. In a proper colouring, the endpoints of every edge have different colours. The counting function extends uniquely to a polynomial, as follows either from the recurrence below with the edgeless base case or from inclusion-exclusion.
Let . Every proper colouring of falls into exactly one of two classes. If and have different colours, it is a proper colouring of . If they have the same colour, identifying and gives a proper colouring of the contracted graph , and this correspondence is bijective. Parallel edges produced by contraction impose identical conditions and can be suppressed. Hence, at every nonnegative integer ,Since polynomials agreeing at infinitely many values agree identically, the deletion-contraction recurrence for the chromatic polynomial isThroughout, the graphs are finite and simple, as in the usual convention for these statements.
For a finite graph , its chromatic polynomial is the polynomial whose value at each positive integer counts proper vertex colourings of from a fixed palette of labelled colours. Adjacent vertices must receive different colours, and unused colours are allowed.
For an edge , the deletion-contraction recurrence for the chromatic polynomial isHere deletes only the edge , while performs edge contraction, identifying and removing . Any parallel edges produced by edge contraction can be replaced by a single edge, since their constraints on proper vertex colourings are identical.
Indeed, the proper vertex colourings of in which differ are precisely those of , while those in which agree correspond bijectively to proper vertex colourings of . This proves the equality for every positive integer , hence as a polynomial identity. Together with for a graph without edges, the recurrence also proves by mathematical induction that the counting function is a polynomial.
First reduce the unicyclic graph to its unique graph cycle . Delete the edges of but retain every vertex. The remaining graph is a forest, since any surviving graph cycle would be a second one in . Each of its connected components of a graph contains a vertex of : follow a graph path to in the original connected graph, stopping at the first vertex of ; this initial segment uses no edge of .
No such connected component of a graph contains two vertices of . Otherwise, on the tree graph path between them, choose two successive visits to . The segment between these visits has no internal vertex on and uses no edge of . Combining it with either connecting arc of gives a second graph cycle, a contradiction. Thus the remaining graph consists of trees, each rooted at exactly one vertex of .
After choosing a proper vertex colouring of from colours, colour these rooted trees away from their roots. Each of the off-graph cycle vertices has one already coloured parent in a rooted tree, leaving exactly choices. The multiplication principle therefore givesEquivalently, this repeatedly applies the chromatic polynomial after attaching a leaf formula.
To compute the chromatic polynomial of a cycle, the base case is the graph triangle:For , deleting a cycle graph edge gives a path graph on vertices, while edge contraction gives . The chromatic polynomial of that path graph is , by choosing the colour of its first vertex and then each successive vertex. Hence the deletion-contraction recurrence for the chromatic polynomial givesUsing mathematical induction, substitute to obtainMultiplying by the factor for the attached trees proves the chromatic polynomial of a unicyclic graph formula
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 3 17F Solution Created 2026-09-24 Updated 2026-10-14
The chromatic polynomial counts proper vertex colorings with labeled colors at positive integer . For an edge , the deletion-contraction recurrence for the chromatic polynomial is , where parallel edges in the contracted graph are merged. Induction on edges, starting from the edgeless polynomial , shows that the coefficients have alternating signs: the contracted graph has one fewer vertex, so subtracting its alternating polynomial reinforces the same signs. The leading coefficient stays one. The coefficient of decreases by one per added edge, hence it is . Thus , with , and all .
For a tree, choose a root, give it any of colors, and give every other vertex any of the colors different from its parent. This gives . Conversely, a graph with this polynomial has . The chromatic polynomial of a disjoint union is the product of those of its connected components, each divisible by . The given polynomial has a simple zero at zero, forcing a single connected component. A connected graph with edges is a tree. The converse holds.
Finally the polynomial determines the number of vertices, the number of edges and the chromatic number. If it equals that of the Turán graph , with , then has chromatic number , so has no , and has the maximum possible number of edges for such a graph. The equality case in Turán's theorem makes isomorphic to . This is the chromatic polynomial determines a Turán graph property. If , the graph is simply complete and its edge count already determines it.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 17H a Solution Created 2026-09-24 Updated 2026-09-25
For a positive integer , the chromatic polynomial is defined to be the number of proper vertex colourings of using a fixed palette of colours.
We prove that this counting function is a polynomial by induction on the number of edges. If has vertices and no edges, every assignment of colours is proper, soOtherwise choose an edge . Every proper colouring of either gives different colours, in which case it is a colouring of , or gives them the same colour, in which case it corresponds to a proper colouring of the contracted graph . Hence the deletion-contraction recurrence for the chromatic polynomial isBoth terms on the right are polynomials by induction, so is a polynomial.
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 145 2 f Solution Created 2026-09-24 Updated 2026-09-25
A proper colouring using exactly colours first partitions the vertices into nonempty independent colour classes and then injectively assigns of the named colours to those classes. These choices numberSumming over counts every proper colouring exactly once; the expression is the chromatic polynomial .
Two-colourability criterion for bipartite graphs Created 2026-09-24 Updated 2026-09-24
