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.
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 if this is a synthetic edge (placeholder for collapsed cluster child)
OptionalsyntheticThe actual child node this synthetic edge points to (for expansion logic)
Represents an edge (connection) between two nodes in a graph.