public class GraphVertex<V> extends java.lang.Object implements CS16Vertex<V>
| Constructor and Description |
|---|
GraphVertex(V element)
The constructor for the GraphVertex class.
|
| Modifier and Type | Method and Description |
|---|---|
V |
element()
Returns the element stored in this vertex.
|
java.lang.Integer |
getVertexNumber()
Returns the number corresponding to this vertex.
|
void |
setElement(V element)
Sets the element stored in this vertex.
|
void |
setVertexNumber(java.lang.Integer num)
Sets the number corresponding to this vertex.
|
public GraphVertex(V element)
element - the element stored in this vertex.public V element()
CS16Vertexelement in interface CS16Vertex<V>public java.lang.Integer getVertexNumber()
CS16VertexgetVertexNumber in interface CS16Vertex<V>public void setElement(V element)
element - the element stored in this vertex.public void setVertexNumber(java.lang.Integer num)
CS16VertexsetVertexNumber in interface CS16Vertex<V>num - the number for this vertex.