getConnectedEdges()
The getConnectedEdges util returns every edge connected to any of the given nodes —
an edge counts if either its source or target is one of those nodes.
import { getConnectedEdges } from '@xyflow/vue';
const connected = getConnectedEdges(selectedNodes, edges);Signature
Parameters:| Name | Type | Default |
|---|---|---|
nodes | NodeType[]Nodes you want to get the connected edges for. | |
edges | EdgeType[]All edges. |