createMockIndexedGraph() — mcp Function Reference
Architecture documentation for the createMockIndexedGraph() function in graph-cache.test.ts from the mcp codebase.
Entity Profile
Relationship Graph
Source Code
src/cache/graph-cache.test.ts lines 414–438
function createMockIndexedGraph(cacheKey: string, nodeCount: number): any {
return {
raw: { graph: { nodes: [], relationships: [] } },
nodeById: new Map(),
labelIndex: new Map(),
pathIndex: new Map(),
dirIndex: new Map(),
nameIndex: new Map(),
callAdj: new Map(),
importAdj: new Map(),
domainIndex: new Map(),
summary: {
filesProcessed: 0,
classes: 0,
functions: 0,
types: 0,
domains: 0,
primaryLanguage: 'typescript',
nodeCount,
relationshipCount: 0,
},
cachedAt: new Date().toISOString(),
cacheKey,
};
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free