getIncomers()
The getIncomers util returns the source nodes directly connected to a given node —
i.e. the nodes on the other end of every edge whose target is that node.
import { getIncomers } from '@xyflow/vue';
const incomers = getIncomers(node, nodes, edges);Signature
Parameters:| Name | Type | Default |
|---|---|---|
node | NodeType | { id: string; }The node to get the connected nodes from. | |
nodes | NodeType[]The array of all nodes. | |
edges | EdgeType[]The array of all edges. |
Notes
- See
getOutgoersfor the nodes on the outgoing side.