N
- Type of nodepublic interface Connection<N>
Graph
. The connection has a non-negative cost that often represents time or
distance. However, the cost can be anything you want, for instance a combination of time, distance, and other factors.Modifier and Type | Method and Description |
---|---|
float |
getCost()
Returns the non-negative cost of this connection
|
N |
getFromNode()
Returns the node that this connection came from
|
N |
getToNode()
Returns the node that this connection leads to
|