VertexColor
public enum VertexColor
VertexColor is used to represent which vertices have been seen during graph searches.
Note: although there are vague interpretations for what each color means, their exact properties are dependent upon the kind of graph search algorithm being executed.
-
white is used for unseen vertices in the graph.
Declaration
Swift
case white -
gray is used for vertices that are being processed.
Declaration
Swift
case gray -
black is used for vertices that have finished processing.
Declaration
Swift
case black
View on GitHub
VertexColor Enumeration Reference