( previous: ReadonlyMap<string, GraphEdge>, edges: GraphEdge[], )
| 26 | } |
| 27 | |
| 28 | export function mergeEdgesInto( |
| 29 | previous: ReadonlyMap<string, GraphEdge>, |
| 30 | edges: GraphEdge[], |
| 31 | ): Map<string, GraphEdge> { |
| 32 | const next = new Map(previous); |
| 33 | for (const edge of edges) next.set(edgeKey(edge), edge); |
| 34 | return next; |
| 35 | } |
| 36 | |
| 37 | export function applyGraphFilters( |
| 38 | graphNodes: Iterable<GraphNode>, |
no test coverage detected