Name
graphcoloring — algorithm for coloring graph by minimal number of colors.
Synopsis
G2 = GRAPHCOLORING(G1,USERPARAMPOSITION)
Description
The function returns coloured graph. Algortihm sets color (RGB) of every node for graphic view and save it to UserParam of nodes as appropriate value representing the color. Input parameters are:
- G1
input graph
- USERPARAMPOSITION
position in UserParam of Nodes where number representative color will be saved. This parameter is optional. Default is 1.