algorithms

algorithms.aStar

aStar(options: AStarOptions & PathfindingResultOptions): object

Find 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.

optionsAStarOptions & PathfindingResultOptionsAStarOptions extended with PathfindingResultOptions. Must include source, target, and a heuristic function.

Returns: object