T - the type of all nodes in the Graphpublic interface GraphPath<T>
GraphAgent across a Graph.
Also provides the total path cost and the last node reachable with a given maximum cost.| Modifier and Type | Method and Description |
|---|---|
T |
getLastNode(double maxCost)
Gets the last
GraphPath node reachable within the specified maximum cost. |
java.util.List<T> |
nodes()
|
double |
totalCost()
Gets the total cost of the
GraphPath. |
double totalCost()
GraphAgent.getStepCost(T, T) results for all nodes()