Interface: PathResult<T>
Defined in: graph.ts:57 Path result from shortest path algorithmsType Parameters
T
T
Properties
distance
distance: number
Defined in: graph.ts:61
Total distance/weight of the path
found
found: boolean
Defined in: graph.ts:63
Whether a path was found
path
path: T[]
Defined in: graph.ts:59
Ordered list of vertices in the path