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

Method depth

packages/graph/src/Traversals.ts:99–101  ·  view source on GitHub ↗

* The depth of the path. * The depth is the number of nodes in the path. * This value is cached at construction time for O(1) access.

()

Source from the content-addressed store, hash-verified

97 * This value is cached at construction time for O(1) access.
98 */
99 public get depth(): number {
100 return this.#depth;
101 }
102
103 /**
104 * Create a new path with the value and labels added.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected