Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Check if the given graph coloring is valid
ResourceFunction["ValidGraphColoring"][graph,coloring] gives True if no two adjacent vertices in graph have the same color as specified by coloring. |
Determine if the given coloring of a complete graph with two vertices is valid:
| In[1]:= |
| Out[1]= |
Find the valid colorings of a graph:
| In[2]:= |
| Out[2]= | ![]() |
Determine the minimum number of colors to color the graph:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License