MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / mergeEdgesInto

Function mergeEdgesInto

dashboard/graph/src/explorerState.ts:28–35  ·  view source on GitHub ↗
(
  previous: ReadonlyMap<string, GraphEdge>,
  edges: GraphEdge[],
)

Source from the content-addressed store, hash-verified

26}
27
28export 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
37export function applyGraphFilters(
38 graphNodes: Iterable<GraphNode>,

Callers 1

CodeGraphExplorerFunction · 0.90

Calls 2

edgeKeyFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected