Create a new Edge instance.
Unique identifier for the edge
Source node
Target node
Optionaldata: EdgeDataOptional data payload for the edge
Optionalstyle: Partial<EdgeFullStyle>Optional style for the edge
OptionalsyntheticTerminalNode: NodeGet the edge's data.
Get the edge's style.
Get the edge's label style if available.
The sources vouching for this edge — pivot ids, plus 'seed' for data that was
here to begin with. Which pivot asserted a relationship is the load-bearing half
of provenance, so edges carry it exactly as nodes do.
Get the edge's style.
Whether source vouches for this edge. 'seed' is true for un-pivoted data.
Switch this edge's layer on or off, re-deriving visible from the other reasons it may already be hidden for. Returns whether anything changed.
Convert edge to a simple JSON object representation.
Structured-cloneable payload for the simulation worker; endpoints reduced to ids, keeps
directed. The style is stripped of functions — see Node.toSimulationDTO.
Merge partial data into the current edge data.
Partial data object to merge
Merge partial style into the current edge style. Useful for updating only parts of the style.
Partial style object to merge
ReadonlydirectedReadonlydomReadonlyidOptionalisTrue for the subclass of synthetic edges that stand in for a real edge whose both endpoints are children of different clusters. Unlike the external→cluster synthetic edges, these are resolved as a set (one per collapse state) by ClusterDrawer.resolveCrossClusterEdges rather than the per-node toggle.
OptionalisTrue if this is a synthetic edge (placeholder for collapsed cluster child)
OptionalrepresentedFor a cross-cluster stand-in: the real edges it speaks for. Stand-ins are deduped by node pair, so one can cover several relations of several kinds; it is filtered out only once every one of them is.
OptionalsyntheticFor a cross-cluster synthetic edge: the real child the from side stands in for.
OptionalsyntheticThe actual child node this synthetic edge points to (for expansion logic)
What visible would be if every layer were on — i.e. visibility from
the endpoint, collapse and manual reasons alone. The simulation gates on this
rather than on visible, so switching a layer off never changes the layout.
Represents an edge (connection) between two nodes in a graph.