MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / getNeighborId

Function getNeighborId

src/core/memory-graph.ts:121–123  ·  view source on GitHub ↗
(edge: MemoryEdge, fromId: string)

Source from the content-addressed store, hash-verified

119}
120
121function getNeighborId(edge: MemoryEdge, fromId: string): string {
122 return edge.source === fromId ? edge.target : edge.source;
123}
124
125export async function upsertNode(rootDir: string, type: NodeType, label: string, content: string, metadata?: Record<string, string>): Promise<MemoryNode> {
126 const graph = await loadGraph(rootDir);

Callers 2

traverseNeighborsFunction · 0.85
collectTraversalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected