(id: number, file = 'src/shared.ts')
| 3 | import type { GraphData, GraphEdge, GraphNode } from './types'; |
| 4 | |
| 5 | const node = (id: number, file = 'src/shared.ts'): GraphNode => ({ id, x: 100, y: 200, z: 300, |
| 6 | name: `n${id}`, qualified_name: `sample.n${id}`, file_path: file, label: 'Function', |
| 7 | size: 2, color: id % 2 ? '#74899a' : '#aa987f' }); |
| 8 | const edge = (source: number, target: number, type = 'CALLS'): GraphEdge => ({ source, target, type }); |
| 9 | function cliques(): GraphData { |
| 10 | const edges: GraphEdge[] = []; |
no outgoing calls
no test coverage detected