MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / addEdge

Function addEdge

packages/agentflow/src/__mocks__/reactflow.tsx:74–74  ·  view source on GitHub ↗
(connection: any, edges: any[])

Source from the content-addressed store, hash-verified

72
73// Edge utilities
74export const addEdge = (connection: any, edges: any[]) => [...edges, connection]
75
76export const getBezierPath = jest.fn(({ sourceX, sourceY, targetX, targetY }: any) => [
77 `M ${sourceX},${sourceY} L ${targetX},${targetY}`,

Callers 3

onConnectFunction · 0.90
onConnectFunction · 0.90
useFlowHandlersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected