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

Method traverse

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

Source from the content-addressed store, hash-verified

606 }
607
608 public traverse(
609 _source: GraphSource<any>,
610 input: Iterable<TraversalPath<any, any, any>>,
611 _context?: QueryContext,
612 ): IterableIterator<TraversalPath<any, any, any>> {
613 // Consume all input paths (so mutations execute) but yield nothing
614 for (const _path of input) {
615 this.traversed++;
616 // Do not yield - just consume
617 }
618 // Return empty iterator
619 return [][Symbol.iterator]();
620 }
621
622 public override clone(partial?: Partial<DrainStepConfig>) {
623 return new DrainStep({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected