public class VertexColorizerKempe6 extends Object
This implementation runs in O(n^2) time.
A 5-color algorithm for color-coding vertices also exists and has similar time-complexity as this implementation. It is more complicated than this routine, but not unreasonably so. Therefore, the Tinfour project may consider the 5-color algorithm for future implementations.
| Constructor and Description |
|---|
VertexColorizerKempe6() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignColorsToVertices(IIncrementalTin tin)
Assign color index values to vertices.
|
boolean |
verifyAssignments(IIncrementalTin tin,
PrintStream ps)
A test utility for verifying the results from the assignColorsToVertices
method.
|
public void assignColorsToVertices(IIncrementalTin tin)
tin - a valid instancepublic boolean verifyAssignments(IIncrementalTin tin, PrintStream ps)
This method tests for two potential failure conditions.
tin - a valid instanceps - a optional print source, or a null if no output is desired.Copyright © 2019. All rights reserved.