MCPcopy Create free account
hub / github.com/codemix/graph / traverse

Method traverse

packages/graph/src/Steps.ts:2605–2616  ·  view source on GitHub ↗
(
    _source: GraphSource<any>,
    input: Iterable<unknown>,
    _context?: QueryContext,
  )

Source from the content-addressed store, hash-verified

2603 }
2604
2605 public *traverse(
2606 _source: GraphSource<any>,
2607 input: Iterable<unknown>,
2608 _context?: QueryContext,
2609 ): IterableIterator<number> {
2610 let count = 0;
2611 for (const _path of input) {
2612 count++;
2613 }
2614 this.emitted++;
2615 yield count;
2616 }
2617
2618 public override clone(partial?: Partial<CountStepConfig>) {
2619 const { config } = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected