Options
All
  • Public
  • Public/Protected
  • All
Menu

Sets the horizontal locations of node and edge dummy nodes on each layer. Uses median down and up weighings as well heuristic to straighten edges as far as possible.

Hierarchy

Index

Constructors

constructor

Properties

currentBestCrossings

currentBestCrossings: number

The total number of crossings found in the best configuration so far

default

0

iterationsWithoutImprovement

iterationsWithoutImprovement: number

The total number of crossings found in the best configuration so far

default

0

layout

Reference to the enclosing mxHierarchicalLayout.

maxIterations

maxIterations: number

The maximum number of iterations to perform whilst reducing edge crossings.

default

24

maxNoImprovementIterations

maxNoImprovementIterations: number

The total number of crossings found in the best configuration so far

default

2

nestedBestRanks

nestedBestRanks: any

Stores each rank as a collection of cells in the best order found for each layer so far

Methods

calculateCrossings

calculateRankCrossing

execute

  • execute(parent: mxCell): void

medianRank

  • medianRank(rankValue: string | number, downwardSweep: boolean): void
  • Attempts to minimise the median placement of connected cells on this rank and one of the adjacent ranks

    Parameters:

    Parameters

    • rankValue: string | number

      the layer number of this rank

    • downwardSweep: boolean

      whether or not this is a downward sweep through the graph

    Returns void

medianValue

  • Calculates the median rank order positioning for the specified cell using the connected cells on the specified rank. Returns the median rank ordering value of the connected cells

    Parameters:

    Parameters

    • connectedCells: mxGraphAbstractHierarchyCell[]

      the cells on the specified rank connected to the specified cell

    • rankValue: string | number

      the rank that the connected cell lie upon

    Returns number

transpose

weightedMedian

Generated using TypeDoc