Skip to content

Defined in: packages/graph/src/dijkstra.ts:52

A shortest-path search’s answer, as arrays indexed by vertex.

readonly distance: Float64Array

Defined in: packages/graph/src/dijkstra.ts:54

The least total cost from the nearest source, or Infinity when unreached.


readonly parent: 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.