@graphty/algorithms / index / AstarResult
Interface: AstarResult ​
Defined in: indexed/point-to-point.ts:33
A* result: the path plus the search state the legacy astarWithDetails reports.
Extends ​
Properties ​
distance ​
readonlydistance:number
Defined in: indexed/point-to-point.ts:25
Sum of the path's weights, added from the source; Infinity when the target is unreachable.
Inherited from ​
edges ​
readonlyedges:U32
Defined in: indexed/point-to-point.ts:29
Logical edge indices along the path, one fewer than path: the exact parallel edge taken.
Inherited from ​
fScore ​
readonlyfScore:F64
Defined in: indexed/point-to-point.ts:37
gScore plus the heuristic, per node; Infinity for a node the search never reached.
gScore ​
readonlygScore:F64
Defined in: indexed/point-to-point.ts:35
Best known cost from the source per node; Infinity for a node the search never reached.
path ​
readonlypath:U32
Defined in: indexed/point-to-point.ts:27
Node indices from the source to the target inclusive; empty when unreachable.
Inherited from ​
visited ​
readonlyvisited:U32
Defined in: indexed/point-to-point.ts:39
Nodes expanded, in expansion order; the target is not expanded, so it is not listed.