Defined in: packages/graph/src/breadth-first-search.ts:14
A breadth-first search’s answer, as arrays indexed by vertex.
Properties
Section titled “Properties”distance
Section titled “distance”
readonlydistance:Int32Array
Defined in: packages/graph/src/breadth-first-search.ts:16
Hops from the nearest source, or -1 when unreached.
parent
Section titled “parent”
readonlyparent:Int32Array
Defined in: packages/graph/src/breadth-first-search.ts:18
The vertex each one was reached from, or -1 for a source and for an unreached vertex.
visitOrder
Section titled “visitOrder”
readonlyvisitOrder:Int32Array
Defined in: packages/graph/src/breadth-first-search.ts:20
Every reached vertex, in the order the search reached it.