Skip to content

Defined in: packages/graph/src/breadth-first-search.ts:14

A breadth-first search’s answer, as arrays indexed by vertex.

readonly distance: Int32Array

Defined in: packages/graph/src/breadth-first-search.ts:16

Hops from the nearest source, or -1 when unreached.


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


readonly visitOrder: Int32Array

Defined in: packages/graph/src/breadth-first-search.ts:20

Every reached vertex, in the order the search reached it.