public interface ComponentVertex extends Vertex
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COMPONENT
Default value for vertices' component field.
|
static int |
FIRST_COMPONENT_NUMBER
The starting number when numbering components.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getComponent()
Get the number of the component to which the vertex belongs
|
void |
setComponent(int componentNumber)
Set the number of the component to which the vertex belongs
|
addAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, getGraph, hasAdjacencies, removeAdjacency, setGraphstatic final int DEFAULT_COMPONENT
static final int FIRST_COMPONENT_NUMBER
void setComponent(int componentNumber)
componentNumber - value to which to set the component numberint getComponent()