| 5 | import { buildHotspotGraph, collectHotspots, gravityPercent, gravityStrength, hotspotSignals, hotspotsForNode } from './hotspot-map'; |
| 6 | |
| 7 | const node = (id: number, name: string, file: string): GraphNode => ({ id, name, qualified_name: `project.${name}`, label: 'Function', file_path: file, start_line: 10, end_line: 80, x: 0, y: 0, z: 0, size: 1, color: '' }); |
| 8 | const graph: GraphData = { nodes: [node(1, 'busy', 'src/api/busy.ts'), node(2, 'complex', 'src/api/complex.ts'), node(3, 'plain', 'other/plain.py')], |
| 9 | edges: [{ id: 5, source: 1, target: 2, type: 'CALLS' }], total_nodes: 3 }; |
| 10 | const findings: ArchitectureHotspot[] = [{ name: 'busy', qualifiedName: 'project.busy', fanIn: 100 }, |