MCPcopy Create free account
hub / github.com/Effect-TS/effect / pushNeighbors

Function pushNeighbors

packages/effect/src/Graph.ts:7904–7911  ·  view source on GitHub ↗
(targets: Uint32Array, offsets: Uint32Array, current: number)

Source from the content-addressed store, hash-verified

7902 }
7903
7904 const pushNeighbors = (targets: Uint32Array, offsets: Uint32Array, current: number) => {
7905 for (let i = offsets[current + 1] - 1; i >= offsets[current]; i--) {
7906 const neighbor = targets[i]
7907 if (yielded[neighbor] === 0) {
7908 stack.push(neighbor)
7909 }
7910 }
7911 }
7912
7913 return {
7914 next() {

Callers 1

nextFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected