edges.connectedTo
connectedTo(nodeId: string): EdgeData[]Return all edges incident to the given node (as source or target).
Not undoable (read-only). Does not emit any event.
nodeId | string | Id of the node whose incident edges to retrieve. |
Returns: EdgeData[]
Example
const incident = api.edges.connectedTo("s1");