Function decrossTwoLayer

  • create a default DecrossTwoLayer

    This operator scans over the layered representation multiple times, applying a heuristic to minimize the number of crossings between two layers. This makes it much faster than complete methods, and produces a reasonable layout in most cases, but there are some simply edge crossings that it won't remove.

    It can be altered by setting both the heuristic it uses to DecrossTwoLayer#order the nodes in a single layer to minimize edge crossings, as well as the different DecrossTwoLayer#inits before applying the two-layer heuristic. You can also tweak how many DecrossTwoLayer#passes it runs. More can produce a better layout, but may take longer.

    Parameters

    • ...args: never[]

    Returns DefaultDecrossTwoLayer

    const layout = sugiyama().decross(decrossTwoLayer());