Skip to content

@graphty/algorithms / index / PathResult

Interface: PathResult ​

Defined in: indexed/point-to-point.ts:23

One shortest path between two nodes.

Extended by ​

Properties ​

distance ​

readonly distance: 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 ​

readonly edges: 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 ​

readonly path: U32

Defined in: indexed/point-to-point.ts:27

Node indices from the source to the target inclusive; empty when unreachable.