GraphTheory[GreedyColor]
|
Calling Sequence
|
|
GreedyColor(G, perm)
|
|
Parameters
|
|
G
|
-
|
undirected unweighted graph
|
perm
|
-
|
(optional) list of vertex labels
|
|
|
|
|
Description
|
|
•
|
The GreedyColor command colors the vertices of the graph in the order given by perm, one at a time, assigning to each vertex the smallest available color. If the permutation perm is not specified, the identity permutation is used.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?