V - the verticesW - the weight of the edgepublic class Edge<V,W extends java.lang.Number>
extends java.lang.Object
| Constructor and Description |
|---|
Edge(V source,
V destination,
W weight)
Create an final version of this object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
V |
getDestination()
The vertex where the edge goes
|
V |
getSource()
The vertex where the edge starts from
|
W |
getWeight()
The weight of the edge
|
int |
hashCode() |
java.lang.String |
toString() |
public V getDestination()
public V getSource()
public W getWeight()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object