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

Method findPath

src/index.ts:3247–3253  ·  view source on GitHub ↗

* Find the shortest path between two nodes * * @param fromId - Starting node ID * @param toId - Target node ID * @param edgeKinds - Edge types to consider (all if empty) * @returns Array of nodes and edges forming the path, or null if no path exists

(
    fromId: string,
    toId: string,
    edgeKinds?: Edge['kind'][]
  )

Source from the content-addressed store, hash-verified

3245 * @returns Array of nodes and edges forming the path, or null if no path exists
3246 */
3247 findPath(
3248 fromId: string,
3249 toId: string,
3250 edgeKinds?: Edge['kind'][]
3251 ): Array<{ node: Node; edge: Edge | null }> | null {
3252 return this.traverser.findPath(fromId, toId, edgeKinds);
3253 }
3254
3255 /**
3256 * Get ancestors of a node in the containment hierarchy

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected