Modifier and Type | Method and Description |
---|---|
Vertex |
addNeighbour(Vertex<V> neighbour)
Add a new edge starting from this edge to the neighbour.
|
boolean |
equals(Object obj) |
V |
getData()
Returns the data associated with this vertex.
|
Set<Vertex<V>> |
getNeighbours()
Returns the set of vertexes that have an incoming edge from this vertex.
|
int |
hashCode() |
String |
toString() |
public V getData()
public Set<Vertex<V>> getNeighbours()
public Vertex addNeighbour(Vertex<V> neighbour)
neighbour
- a new neighbour of this vertexCopyright © 2013. All Rights Reserved.