Function layeringSimplex

  • create a default LayeringSimplex

    This layering operator assigns layers to minimize the overall lengths of edges. In most cases this strikes a good balance between compactness and time to compute.

    The current implementation allows specifying LayeringSimplex#rank constraints that indicate which nodes should be above other nodes, and LayeringSimplex#group constraints that say which nodes should be on the same layer. Note that adding these constraints can cause the optimization to become ill-defined.

    Parameters

    • Rest ...args: never[]

    Returns DefaultLayeringSimplex

    Example

    const layout = sugiyama().layering(layeringSimplex());
    

Generated using TypeDoc