Interface Separation<NodeDatum, LinkDatum>

A separation function that indicates how far apart nodes should be the layering / height assignment.

Remarks

upper and lower are historic, since arbitrary graphs are handled, there is no longer a notion of upper or lower and separation should return the correct separation independent of nodes relations in the graph.

Type Parameters

  • in NodeDatum = never

  • in LinkDatum = never

Hierarchy

  • Separation
  • compute the necessary separation between two nodes

    first and second are undefined to indicate the separation from the extents of the layout (0, or height). Both will never be undefined.

    Parameters

    • first: undefined | GraphNode<NodeDatum, LinkDatum>

      one node to find the separation between

    • second: undefined | GraphNode<NodeDatum, LinkDatum>

      the other node to find the separation between

    Returns number

    sep - the minimum separation between the two nodes, regardless of which one is on top

Generated using TypeDoc