getOutgoers()
Source on GitHub (opens in a new tab)
This util is used to tell you what nodes, if any, are connected to the given node as a the target of an edge.
import { getOutgoers } from '@xyflow/svelte';
const nodes = [];
const edges = [];
const incomers = getOutgoers(
{ id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } },
nodes,
edges,
);
Signature
Name | Type |
---|---|
#Params |
|
# node | |
# nodes | Node[] |
# edges | Edge[] |
#Returns |
|
Node[] |