Interface CoordGreedy

a Coord that tries to place nodes close to their parents

Nodes that can't be placed at the mean of their parents' location, will be spaced out with their priority equal to their degree.

Create with coordGreedy.

Hierarchy

  • Coord<unknown, unknown>
    • CoordGreedy
  • assign coordinates to a layered graph

    Type Parameters

    • N extends unknown

    • L extends unknown

    Parameters

    • layers: SugiNode<N, L>[][]

      a layered graph of sugiyama nodes

    • sep: SugiSeparation<N, L>

      how much horizontal separation should exist between nodes

    Returns number

    width - the total width of the layout

Generated using TypeDoc