getOutgoers()
The getOutgoers util returns the target nodes directly connected to a given node —
i.e. the nodes on the other end of every edge whose source is that node.
import { getOutgoers } from '@xyflow/vue';
const outgoers = getOutgoers(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
getIncomersfor the nodes on the incoming side.