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.
Properties
Section titled “Properties”sources
Section titled “sources”
readonlysources: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.
target?
Section titled “target?”
readonlyoptionaltarget?: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.