Skip to main content

Home > @jsplumbtoolkit/core > Graph > getEdge

Graph.getEdge() method

Gets an Edge by id, or if the given object is already an Edge, hands that back.

Signature:

getEdge(e: string | Edge | any): Edge;

Parameters

ParameterTypeDescription
estring | Edge | anyID of the Edge to retrieve, or an actual Edge, or some data from which an ID could be derived.

Returns:

Edge

The requested Edge, if found, otherwise null.