MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / add

Function add

yaml-flow-editor/src/utils/layout.ts:196–199  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

194export function getConnectedNodeIds(nodeId: string, edges: FlowEdge[]): Set<string> {
195 const adj = new Map<string, Set<string>>();
196 const add = (a: string, b: string) => {
197 if (!adj.has(a)) adj.set(a, new Set());
198 adj.get(a)!.add(b);
199 };
200 edges.forEach((e) => {
201 const s = e.source;
202 const t = e.target;

Callers 1

getConnectedNodeIdsFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected