ArticleslgStudy

science

Chromatic polynomial

Chromatic polynomial is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Chromatic polynomial rather than just read about it. In short: 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.

Chromatic polynomial — main illustration
Chromatic polynomial — illustration

Key takeaways

  • Chromatic polynomial belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Chromatic polynomial to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Chromatic polynomial from memory before moving on to harder problems.

Reference excerpt

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 corank-nullity polynomial by Hassler Whitney and to the Tutte polynomial by 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, 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.

Definition

For a graph G, P(G,k) counts the number of its (proper) vertex k-colorings. Other commonly used notations include PG(k), χG(k), or πG(k). There is a unique polynomial 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 P3 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(P3,k)=k⋅(k−1)⋅(k−1) is the number of k-colorings of P3. For a variable x (not necessarily integer), we thus have P(P3,x)=x(x−1)2=x3−2x2+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. 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)=xn 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 kn, 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

{(0,P(G,0)),(1,P(G,1)),…,(n,P(G,n))}. 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 TG(x,y).

Examples

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,

χ(G)=min⁡{k∈ℕ: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. The derivative evaluated at 1, P′(G,1) equals the chromatic invariant θ(G) up to sign. If G has n vertices and c components G1,…,Gc, then

The coefficients of x0,…,xc−1 are zeros. The coefficients of xc,…,xn are all non-zero and alternate in signs. The coefficient of xn is 1 (the polynomial is monic). The coefficient of xn−1 is −|E(G)|. 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)=xn. So the coefficient of xn−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)=xn−xn−1. Thus coefficient of xn−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)=xn−an−1xn−1+an−2xn−2−⋯, and P(G/e,x)=xn−1−bn−2xn−2+bn−3xn−3−⋯. Hence P(G,x)=xn−(an−1+1)xn−1+⋯.Since G−e is obtained from G by removal of just one edge e, an−1=k−1, so an−1+1=k and thus the statement is true for k. The coefficient of xn−2 is (|E|2)−t(G), where t(G) is the number of triangles (3-cycle subgraphs) in G. The coefficient of x1 is (−1)n−1 times the number of acyclic orientations that have a unique sink, at a specified, arbitrarily chosen vertex. The absolute values of coefficients of every chromatic polynomial form a log-concave sequence. P(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 and G2 (i.e., a graph obtained by gluing the two at a clique on k vertices, isomorphic to the complete graph Kk), then

P(G,x)=P(G1,x)P(G2,x)P(Kk,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.

Chromatic equivalence

… excerpt ends here. Continue reading the full article.

Illustrations

Chromatic polynomial: All non-isomorphic graphs on 3 vertices and their chromatic polynomials, clockwise from the top. The independent 3-set: .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}k3. An edge and a single vertex: k2(k − 1). The 3-path: k(k − 1)2. The 3-clique: k(k − 1)(k − 2).
All non-isomorphic graphs on 3 vertices and their chromatic polynomials, clockwise from the top. The independent 3-set: .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}k3. An edge and a single vertex: k2(k − 1). The 3-path: k(k − 1)2. The 3-clique: k(k − 1)(k − 2).
Chromatic polynomial: 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.
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.
Chromatic polynomial: The three graphs with a chromatic polynomial equal to (x−2)(x−1)3x.
The three graphs with a chromatic polynomial equal to (x−2)(x−1)3x.

Worked examples

Example 1 — a first encounter with Chromatic polynomial

Start with the simplest possible case. Write down what Chromatic polynomial claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Chromatic polynomial before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Chromatic polynomial ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Chromatic polynomial

In research
Chromatic polynomial appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Chromatic polynomial in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Chromatic polynomial is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph coloring, Graph invariants, so understanding it makes those chapters shorter.
In everyday life
Look for Chromatic polynomial outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Chromatic polynomial” →

How to study Chromatic polynomial in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Chromatic polynomial means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Chromatic polynomial out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Chromatic polynomial in simple terms?

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.

Why does Chromatic polynomial matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Chromatic polynomial?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Chromatic polynomial.

Tags

  • Graph coloring
  • Graph invariants

Keep exploring