public class AStarSearch
extends java.lang.Object
| Constructor and Description |
|---|
AStarSearch() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Edge> |
search(Node start,
Node destination)
Runs the search function, returning a List ordered in the Edges to take from one start Node to destination
|
public static java.util.List<Edge> search(Node start, Node destination)
start - The node that the user wishes to start fromdestination - The target node that the user wishes to reachjava.lang.IllegalArgumentException - throws if the Node you are starting from has no open paths from it
Returns empty if destination and start are same node