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

Method traverse

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

Source from the content-addressed store, hash-verified

2851 }
2852
2853 public *traverse(
2854 _source: GraphSource<any>,
2855 input: Iterable<TInput>,
2856 _context?: QueryContext,
2857 ): IterableIterator<unknown> {
2858 const { mapper } = this.config;
2859 for (const value of input) {
2860 this.traversed++;
2861 this.emitted++;
2862 yield mapper(value as TInput);
2863 }
2864 }
2865
2866 public override clone(partial?: Partial<MapElementsStepConfig<TInput>>) {
2867 const { config } = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected