(a: GraphNode, b: GraphNode)
| 55 | const isSource = (node: GraphNode) => Boolean(node.file_path && node.file_path !== '{}' |
| 56 | && !['Project', 'Folder', 'Package', 'Branch'].includes(node.label)); |
| 57 | const priority = (a: GraphNode, b: GraphNode) => (b.in_calls ?? 0) - (a.in_calls ?? 0) |
| 58 | || (b.out_calls ?? 0) - (a.out_calls ?? 0) || a.name.localeCompare(b.name); |
| 59 | |
| 60 | /** Linear in the already loaded graph. Every aggregate retains its real edges. */ |
| 61 | export function repositoryMap(graph: GraphData): RepositoryMap { |
nothing calls this directly
no outgoing calls
no test coverage detected