Skip to content

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

Where a breadth-first search starts, and the vertex at which it may stop early.

readonly sources: Iterable<number>

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

Start vertices, all at distance 0. A repeated source is ignored after its first appearance.


readonly optional target?: number

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

Stop as soon as this vertex is reached. Vertices not yet reached then read as unreached.