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

Function next

packages/effect/src/Graph.ts:7914–7931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7912
7913 return {
7914 next() {
7915 while (stack.length > 0) {
7916 const current = stack.pop()!
7917 if (yielded[current] !== 0) {
7918 continue
7919 }
7920
7921 if (view.secondary !== undefined) {
7922 pushNeighbors(view.secondary.columnIndices, view.secondary.rowOffsets, current)
7923 }
7924 pushNeighbors(view.primary.columnIndices, view.primary.rowOffsets, current)
7925 yielded[current] = 1
7926
7927 return { done: false, value: f(cache.nodeIds[current], cache.nodeData[current] as N) }
7928 }
7929
7930 return { done: true, value: undefined } as const
7931 }
7932 }
7933 }
7934

Callers

nothing calls this directly

Calls 9

pushNeighborsFunction · 0.85
enqueueBoundedFunction · 0.85
withMutationGuardFunction · 0.85
copyEdgeFunction · 0.85
enqueueFunction · 0.70
pushFunction · 0.70
pushMethod · 0.65
nextMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected