edges

edges.between

between(sourceId: string, targetId: string): EdgeData[]

Return all edges that run from sourceId to targetId (directed).

Not undoable (read-only). Does not emit any event.

sourceIdstringId of the source node.
targetIdstringId of the target node.

Returns: EdgeData[]

Example

const edges = api.edges.between("s1", "s2");