V - The vertex typepublic interface Edge<V extends Vertex>
| Modifier and Type | Method and Description |
|---|---|
V |
getDestination() |
V |
getOrigin() |
int |
getWeight() |
void |
setDestination(V destination) |
void |
setOrigin(V origin) |
void |
setWeight(int weight) |
V getOrigin()
V getDestination()
void setOrigin(V origin)
origin - Origin vertex to setvoid setDestination(V destination)
destination - Destination vertex to setint getWeight()
void setWeight(int weight)
weight - Weight to set