public class UndirectedBfsVertex extends UndirectedSimpleVertex implements BfsVertex
DEFAULT_DISTANCE| Constructor and Description |
|---|
UndirectedBfsVertex() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Get the vertex color
|
int |
getDistance()
Get the value of the distance field
|
ChildVertex |
getParent()
Get the vertex's parent
|
void |
setColor(Color color)
Set the vertex color
|
void |
setDistance(int distance)
Set the distance field
|
void |
setParent(ChildVertex parent)
Set the parent of the given vertex
|
addAdjacency, clearAdjacencies, removeAdjacencyadjacencyCount, containsAdjacency, getAdjacencies, hasAdjacenciesequals, getGraph, setGraphclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, getGraph, hasAdjacencies, removeAdjacency, setGraphpublic void setParent(ChildVertex parent)
ChildVertexsetParent in interface ChildVertexparent - vertex to be set as parentpublic ChildVertex getParent()
ChildVertexgetParent in interface ChildVertexpublic void setColor(Color color)
ColoredVertexsetColor in interface ColoredVertexcolor - value to which to set the colorpublic Color getColor()
ColoredVertexgetColor in interface ColoredVertexpublic void setDistance(int distance)
DistanceVertexsetDistance in interface DistanceVertexdistance - value to which to set the distance fieldpublic int getDistance()
DistanceVertexgetDistance in interface DistanceVertex