Skip to main content

Home > @jsplumbtoolkit/core > Vertex > getEdges

Vertex.getEdges() method

Gets all edges where this vertex is either the source or the target of the edge. Note that this does *not* retrieve edges on any ports associated with this Vertex - for that,

Signature:

getEdges(params?: {
filter: (e: Edge) => boolean;
}): Array<Edge>;

Parameters

ParameterTypeDescription
params{ filter: (e: Edge) => boolean; }

Returns:

Array<Edge>

List of matching edges.