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

Method traverse

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

Source from the content-addressed store, hash-verified

4569 }
4570
4571 public *traverse(
4572 source: GraphSource<any>,
4573 input: Iterable<unknown>,
4574 _context?: QueryContext,
4575 ): IterableIterator<unknown> {
4576 for (const path of input) {
4577 this.traversed++;
4578 const flattened = recursivelyFlattenValues(path);
4579 this.emitted++;
4580 yield flattened;
4581 }
4582 }
4583
4584 public override clone(partial?: Partial<ValuesStepConfig>) {
4585 return new ValuesStep({

Callers

nothing calls this directly

Calls 1

recursivelyFlattenValuesFunction · 0.85

Tested by

no test coverage detected