Skip to main content

isEdgeConnectedTo

isEdgeConnectedTo(edge, ...vertex): boolean

Checks if an edge is connected to the given vertex or any of its ports.

Parameters

edge

Edge

The edge to check.

vertex

...Vertex[]

The vertex (Node or Group) to check against.

Returns

boolean

True if the edge's source or target (or their parent Node/Group if a Port) matches the vertex.