Lecture 19: Chromatic Polynomial
At the end of the last lecture, we introduced the chromatic polynomial , which counts the number of ways to colour with colours. We demonstrated that the chromatic polynomial of the empty graph was , and the chromatic polynomial of the complete graph was .
Recall the chromatic number is the least number so that can be coloured with colours. If can’t be coloured with colours, then there are 0 colourings of with colourings, and so . If can be coloured with colourings, then there is at least one such colouring, and so . Thus, we see that the chromatic polynomial determines the chromatic number .
Lemma
The chromatic number is the least number so that .
For certain graphs, one can calculate the chromatic polynomial just by starting at a vertex, and attempting to colour nearby vertices. We illustrate this now for a couple of graphs, and also show how for more complicated graphs this method becomes more complicated.
Example: The path graph
Recall the path graph consisted of vertices, with vertex adjacent to vertices .
Starting at the end vertex , there are possible colours we can colour it. Moving onto vertex , it can’t be the same colour as , but otherwise could be any colour, and so there are possible colours.
Similarly, can be any colour except that of , and similarly for each vertex, and so we see .
Note that the above argument holds for any tree, and so all trees have the same chromatic polynomial.
Example
Consider the graph above. Vertex has possibilities, then vertex 2 is adjacent to vertex 1, and so has possibilities. Vertex 3 is adjacent to 1 and 2, which are known to be different colours, and so has possibilties. Similarly, vertex 4 is adjacent to 2 and 3, which are adjacent and hence have different colours, and so vertex 4 has possibilities as well, and so
Example:
Now consider the graph , as shown above. Vertex can be any of colours, and vertex 2 has possibilities – any colour except the one used for vertex . Moving to vertex 4, we see it is just adjacent to as well, and so has possibilities as well.
It becomes more difficult when we try to colour vertex 3. It is adjacent to vertices 2 and 4, and so cannot be the same colour as either of these. However, vertices 2 and 4 are not adjacent, and so we don’t know whether they have the same colour or not. If vertices 2 and 4, have the same colour there are possibilities for vertex 3, while if vertices 2 and 4 have different colours, there are only possibilties. Thus, we must count how many possibilities are in each of these cases.
If we want vertices 2 and 4 to have the same colour, we can first colour vertex 1 in different ways, and then pick any of the remaining colours for vertices and . Then, to complete this to a colouring of , with have to colour , which can be any of the colours that aren’t the colour and are coloured. Thus, the case where and have the same colour has possibilities.
If we want vertices 2 and 4 to have different colours, then we can first colour any of colours, colour any of colours. Now, when we go to colour vertex 4 it can’t be the same colour as vertex 1 since they are adjacent, and it can’t be the same colour as vertex 2 by our supposition. Vertices and have different colours, and so this leaves possibilities for . Thus there are possibilities to colour vertices 1, 2 and 4 so that 2 and 4 have different colours, and then there are possibilities left for vertex 3, giving ways to colour so that vertices 2 and 4 have different colours.
Adding the two cases together, this gives
For larger graphs, sometimes the colouring method we used above will work well, while for others the type of case by case analysis we needed for will explode and make it intractible. To prove that is a polynomial, we will need a general method to deal with it.
Deletion Contraction
Consider an edge in a graph . There are two new graphs we can make – we can delete the edge , getting a graph , that has the same vertex set and one less edge.
We can also contract – that is, shrink it to a point. Doing this may create multiple edges – for instance, if we contract an edge in the triangle , we get two vertices connected by two edges, which we will call . These extra edges will not matter for the chromatic polynomial, so if we have multiple edges we will delete the extra copies. This simplification is necessary, because if we contracted one of the edges of , we would get a loop, which can’t be coloured at all!
The resulting graph has one less vertex (the two vertices adjacent to have been identified to one) and at least one less edge (the one contracted), but possibly more (if we had to delete some multiple edges).
We want to prove:
Lemma
Proof
Suppose the edge connects vertices and .
Consider a colouring of the graph . Then, either the vertices and have the same colour or they have different colours. If they have different colours, then this colouring is a valid colouring of itself.
It may happen, however, that and have the same colour. Such a colouring does not give a colouring of . However, it does give a colouring of , and furthermore any colouring of gives a colouring of where and are the same colour.
If we rewrite the statement of the lemma as then we get a recursive way to calculate chromatic functions, as the graphs and each have less edges than .
We will use this recursive equation to prove that the chromatic polynomial is in fact a polynomial. As is usual in proofs using a recursion, the proof will use induction. It is fun for a last proof for the course because it is a double induction, on the number of vertices AND the numebr of edges.
Lemma
Let be a graph with vertices and edges. The function is a polynomial of degree , with leading coefficent and second order term , that is:
where the dots are lower oder terms.
Proof
We use induction on and . As a base case, the empty graph has , which holds.
Now suppose that is a graph with vertices and edges, and we have proven the lemma for all graphs with less than vertices, and for all graphs with vertices but edges. Picking any edge of and applying deletion-contraction, we have:
.
By the inductive hypothesis, both the terms on the right hand side are polynomials, so is a polynomial. We have and , so the statements about the degree, leading coefficient, and second coefficient all follow.