ChromaticPolynomial

ChromaticPolynomial[g,k]

gives the chromatic polynomial of the graph g.

ChromaticPolynomial[{vw,},]

uses rules vw to specify the graph g.

Details

Examples

open allclose all

Basic Examples  (1)

The chromatic polynomial of a cycle graph:

In[1]:=
Click for copyable input
Out[1]=

Plot the polynomial:

In[2]:=
Click for copyable input
Out[2]=

Scope  (6)

Applications  (3)

Properties & Relations  (3)

See Also

TuttePolynomial  FlowPolynomial

Introduced in 2014
(10.0)
| Updated in 2015
(10.3)