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

Method traverse

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

Source from the content-addressed store, hash-verified

4042 }
4043
4044 public *traverse(
4045 source: GraphSource<any>,
4046 input: Iterable<unknown>,
4047 _context?: QueryContext,
4048 ): IterableIterator<unknown> {
4049 for (const path of input) {
4050 this.traversed++;
4051 this.emitted++;
4052 yield path;
4053 }
4054 for (const path of this.unionTraverser.traverse(source, input)) {
4055 this.traversed++;
4056 this.emitted++;
4057 yield path;
4058 }
4059 }
4060
4061 public override clone(partial?: Partial<UnionStepConfig>) {
4062 const { config, steps } = this;

Callers

nothing calls this directly

Calls 1

traverseMethod · 0.45

Tested by

no test coverage detected