Interface LaneOpt

a lane operator that assigns lanes to minimize edge crossings.

Create with laneOpt.

Hierarchy

  • Lane<unknown, unknown>
    • LaneOpt
  • assign lanes to ordered nodes

    Parameters

    • ordered: readonly GraphNode<unknown, unknown>[]

      the nodes in to assign lanes to in order from top to bottom

    Returns void

Methods

  • set whether to used compressed output

    If output is compressed then the number of crossings will be minimized subject to the fewest number of lanes necessary.

    (default: false)

    Parameters

    • val: boolean

    Returns LaneOpt

  • get the current compressed setting

    Returns boolean

  • set whether to also minimize distance between connected nodes

    This adds more variables and constraints so will take longer, but will likely produce a better layout.

    (default: true)

    Parameters

    • val: boolean

    Returns LaneOpt

  • get whether the current layout minimized distance

    Returns boolean

Generated using TypeDoc