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

Method constructor

packages/graph/src/Traversals.ts:58–64  ·  view source on GitHub ↗
(parent: TParent, value: TValue, labels: TLabels)

Source from the content-addressed store, hash-verified

56 #depth: number;
57
58 public constructor(parent: TParent, value: TValue, labels: TLabels) {
59 this.#parent = parent;
60 this.#value = value;
61 this.#labels = labels;
62 // Cache depth at construction time since TraversalPath is immutable
63 this.#depth = parent === undefined ? 1 : (parent as TraversalPath<any, any, any>).depth + 1;
64 }
65
66 /**
67 * The unique id of the path.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected