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

Method clone

packages/graph/src/Steps.ts:3520–3527  ·  view source on GitHub ↗
(partial?: Partial<VertexStepConfig>)

Source from the content-addressed store, hash-verified

3518 }
3519
3520 public override clone(partial?: Partial<VertexStepConfig>) {
3521 const { config } = this;
3522 return new VertexStep({
3523 direction: partial?.direction ?? config.direction,
3524 edgeLabels: partial?.edgeLabels ?? [...config.edgeLabels],
3525 stepLabels: partial?.stepLabels ?? (config.stepLabels ? [...config.stepLabels] : undefined),
3526 });
3527 }
3528}
3529
3530export interface EdgeStepConfig extends StepConfig {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected