public class DirectedSimpleColoredVertex extends DirectedSimpleVertex implements ColoredVertex
Constructor and Description |
---|
DirectedSimpleColoredVertex()
Default constructor initializes graph to null, creates an empty adjacency list
and initializes vertex color to WHITE
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Get the vertex color
|
void |
setColor(Color color)
Set the vertex color
|
addAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, hasAdjacencies, removeAdjacency
equals, getGraph, setGraph
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, getGraph, hasAdjacencies, removeAdjacency, setGraph
public DirectedSimpleColoredVertex()
public void setColor(Color color)
ColoredVertex
setColor
in interface ColoredVertex
color
- value to which to set the colorpublic Color getColor()
ColoredVertex
getColor
in interface ColoredVertex