Skip to main content

getEdges

getEdges(v, filter?): Edge[]

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, see getAllEdges.

Parameters

v

Vertex

filter?

(e) => boolean

Optional function to test whether a given edge should be included.

Returns

Edge[]

List of matching edges.