@graphty/algorithms / index / PathResult
Interface: PathResult ​
Defined in: indexed/point-to-point.ts:23
One shortest path between two nodes.
Extended by ​
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.
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.
path ​
readonlypath:U32
Defined in: indexed/point-to-point.ts:27
Node indices from the source to the target inclusive; empty when unreachable.