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
Parameter | Type | Description |
---|---|---|
e | string | Edge | any | ID of the Edge to retrieve, or an actual Edge, or some data from which an ID could be derived. |
Returns:
The requested Edge, if found, otherwise null.