Function decrossOpt

  • create a default DecrossOpt

    This operator optimally reduces the number of edge crossings, and can optionally reduce the distance between nodes that share a common ancestor. This should produce the best layouts, but due to the complexity can only be run on fairly small graphs.

    By default it's set to error if the graph is too large. You can relax if it errors with DecrossOpt#check, but this isn't advised.

    Parameters

    • ...args: never[]

    Returns DecrossOpt

    const layout = sugiyama().decross(decrossOpt().dist(true));