Skip to Content
💡 Legacy Notice: You're viewing Svelte Flow for Svelte 4. For the latest documentation, click here.
ReferenceUtilsgetConnectedEdges()

getConnectedEdges()

Source on GitHub 

Given an array of nodes that may be connected to one another and an array of all your edges, this util gives you an array of edges that connect any of the given nodes together.

import { getConnectedEdges } from '@xyflow/svelte'; const nodes = []; const edges = []; const connectedEdges = getConnectedEdges(nodes, edges);

Signature

#Params
#nodes
#edges
#Returns
Last updated on