(targets: Uint32Array, offsets: Uint32Array, current: number)
| 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() { |