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.
Get the edge's style.
Convert edge to a simple JSON object representation.
Structured-cloneable payload for the simulation worker; endpoints reduced to ids, keeps directed.
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)
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)
Represents an edge (connection) between two nodes in a graph.