algorithms.aStar
aStar(options: AStarOptions & PathfindingResultOptions): objectFind the shortest path between two nodes using the A* heuristic algorithm.
Runs synchronously on the main thread. When selectResult is true the
resulting nodes and edges are immediately selected via SelectionApi.
Not undoable.
options | AStarOptions & PathfindingResultOptions | AStarOptions extended with PathfindingResultOptions.
Must include source, target, and a heuristic function. |
Returns: object