T - Type of the nodespublic class Edge<T> extends Object
| Constructor and Description |
|---|
Edge(T origin,
Neighbor<T> neighbor)
Build an edge between n1 and neighbor.node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Neighbor<T> |
getNeighbor()
Get the neighbor.
|
T |
getOrigin()
Get the origin of the edge (the source node).
|
int |
hashCode() |
String |
toString() |
public final T getOrigin()
Copyright © 2017. All rights reserved.