Interface CoordTopological

a Coord for positioning edges of a topological layout

This operator can position nodes similar to coordSimplex or coordQuad but is tailored to topological layouts.

Create with coordTopological.

interface CoordTopological {
    straight(val: boolean): CoordTopological;
    straight(): boolean;
    <N extends unknown, L extends unknown>(
        layers: SugiNode<N, L>[][],
        sep: SugiSeparation<N, L>,
    ): number;
}

Hierarchy (View Summary)

  • Coord<unknown, unknown>
    • CoordTopological
  • 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

Methods

Methods