Defined in: packages/graph/src/path.ts:4
The part of a search result path reads: a distance and a parent per vertex.
Properties
Section titled “Properties”distance
Section titled “distance”
readonlydistance:Int32Array<ArrayBufferLike> |Float64Array<ArrayBufferLike>
Defined in: packages/graph/src/path.ts:6
-1 or Infinity marks an unreached vertex, as breadthFirstSearch and dijkstra write it.
parent
Section titled “parent”
readonlyparent:Int32Array
Defined in: packages/graph/src/path.ts:8
The vertex each one was reached from, -1 at a source.