Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Color the vertices in a graph with no adjacent vertices sharing a color
ResourceFunction["ColorGraphVertices"][graph] colors the vertices of graph with no adjacent vertices having the same color. | |
ResourceFunction["ColorGraphVertices"][graph, colors] uses colors from the color list colors. |
Color the vertices of the Petersen graph:
| In[1]:= |
| Out[1]= | ![]() |
Color the vertices of the Petersen graph with color list 105:
| In[2]:= |
| Out[2]= | ![]() |
Color the vertices of the Petersen graph with a random sample of crayola colors:
| In[3]:= |
| Out[3]= | ![]() |
Color the vertices of the Pappus graph:
| In[4]:= |
| Out[4]= | ![]() |
Color the vertices of the skeleton of the Császár polyhedron:
| In[6]:= |
| Out[6]= | ![]() |
Make a large random graph and color the vertices:
| In[7]:= |
| Out[7]= | ![]() |
Make a 3D buckyball graph with colors:
| In[8]:= |
| Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License