Home > @jsplumbtoolkit/core > Graph > getEdges
Graph.getEdges() method
For some given node, get a subset of edges that match the given filter function.
Signature:
getEdges(params?: {
node?: Vertex | string;
source?: boolean;
target?: boolean;
filter?: (e: Edge) => boolean;
}): Array<Edge>;
Parameters
Parameter | Type | Description |
---|---|---|
params | { node?: Vertex | string; source?: boolean; target?: boolean; filter?: (e: Edge) => boolean; } | Method parameters |
Returns:
Array<Edge>