True for a stand-in: a line drawn for real edges whose ends are hidden in closed clusters.
Required by d3-force
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
Get 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
ReadonlydirectedReadonlydomReadonlyidOptionalrepresentedFor a stand-in: the real edges it speaks for. Edges landing on the same pair of dots share one line, so one stand-in can cover several relations of several kinds; it is filtered out only once every one of them is. Undefined on a real edge.
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.