Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Color the edges of a graph so no edges incident to each other have the same color
ResourceFunction["ColorGraphEdges"][graph] colors the edges of graph so no edges incident to each other have the same color. | |
ResourceFunction["ColorGraphEdges"][graph, colors] uses the color function colors. |
Color the edges of the Petersen graph:
In[1]:= | ![]() |
Out[1]= | ![]() |
Use a different coloring list with ColorData:
In[2]:= | ![]() |
Out[2]= | ![]() |
Color the edges of the skeleton of the Csaszar polyhedron:
In[3]:= | ![]() |
Out[3]= | ![]() |
Find edge colorings for a large random graph:
In[4]:= | ![]() |
Out[4]= | ![]() |
Color the Hoffman-Singleton graph with seven colors:
In[5]:= | ![]() |
Out[5]= | ![]() |
When the function FindEdgeColoring cannot find an edge coloring, ColorGraphEdges will not color the graph:
In[6]:= | ![]() |
Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License