I have the following graph with $nm$ vertices:
1 --- 2 --- 3 --- (n)
| | |
4 --- 5 --- 6 --- (n)
| | |
7 --- 8 --- 9 --- (n)
| | |
| | |
(m) (m) (m)
In other words, this is a graph of a grid with $m$ rows and $n$ columns. How can I determine the chromatic polynomial of this graph? Say, for $n=4$ and $m=4$? Is there a way to form a general formula for such a graph,?