Defined in: packages/graph/src/dijkstra.ts:52
A shortest-path search’s answer, as arrays indexed by vertex.
Properties
Section titled “Properties”distance
Section titled “distance”
readonlydistance:Float64Array
Defined in: packages/graph/src/dijkstra.ts:54
The least total cost from the nearest source, or Infinity when unreached.
parent
Section titled “parent”
readonlyparent:Int32Array
Defined in: packages/graph/src/dijkstra.ts:56
The vertex each one was reached from on a cheapest path, or -1 for a source and for an unreached vertex.