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

getIncomers()

Source on GitHub 

This util is used to tell you what nodes, if any, are connected to the given node as the source of an edge.

import { getIncomers } from '@xyflow/svelte'; const nodes = []; const edges = []; const incomers = getIncomers( { id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } }, nodes, edges, );

Signature

#Params
#node
#nodes
#edges
#Returns
Last updated on