Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the vertex chromatic number of a graph
ResourceFunction["ChromaticNumber"][g] computes the vertex chromatic number χ(g) of the simple graph g. |
Compute chromatic numbers of simple graphs:
In[1]:= | ![]() |
Out[1]= | ![]() |
Compute chromatic numbers of graphs:
In[2]:= | ![]() |
Out[2]= | ![]() |
Compute the vertex chromatic number of famous graphs:
In[3]:= | ![]() |
Out[3]= | ![]() |
Works on graphs in either 2D or 3D form:
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
Special and corner cases are handled efficiently:
In[6]:= | ![]() |
Out[7]= | ![]() |
Compute on larger graphs than was possible before (with Combinatorica`):
In[8]:= | ![]() |
Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License