MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getAncestors

Method getAncestors

src/index.ts:3178–3180  ·  view source on GitHub ↗

* Get ancestors of a node in the containment hierarchy * * @param nodeId - ID of the node * @returns Array of ancestor nodes from immediate parent to root

(nodeId: string)

Source from the content-addressed store, hash-verified

3176 * @returns Array of ancestor nodes from immediate parent to root
3177 */
3178 getAncestors(nodeId: string): Node[] {
3179 return this.traverser.getAncestors(nodeId);
3180 }
3181
3182 /**
3183 * Get immediate children of a node

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected