Options
All
  • Public
  • Public/Protected
  • All
Menu

Internal model of a hierarchical graph. This model stores nodes and edges equivalent to the real graph nodes and edges, but also stores the rank of the cells, the order within the ranks and the new candidate locations of cells. The internal model also reverses edge direction were appropriate , ignores self-loop and groups parallels together under one edge object.

Hierarchy

  • mxGraphHierarchyModel

Index

Constructors

constructor

Properties

SOURCESCANSTARTRANK

SOURCESCANSTARTRANK: number

High value to start source layering scan rank value from.

dfsCount

dfsCount: number

Count of the number of times the ancestor dfs has been used.

edgeMapper

edgeMapper: any

Map from graph edges to internal model edges

maxRank

maxRank: number

Stores the largest rank number allocated

parent

parent: mxCell

The parent cell whose children are being laid out

ranks

ranks: number[]

Mapping from rank number to actual rank

roots

roots: mxCell[]

Store of roots of this hierarchy model, these are real graph cells, not internal cells

tightenToSource

tightenToSource: boolean

Whether or not to tighten the assigned ranks of vertices up towards the source cells.

vertexMapper

vertexMapper: any

Map from graph vertices to internal model nodes.

Methods

createInternalCells

dfs

  • dfs(parent: mxCell, root: mxCell, connectingEdge: boolean, visitor: any, seen: any[], layer: number): void

extendedDfs

  • extendedDfs(parent: mxCell, root: mxCell, connectingEdge: boolean, visitor: any, seen: any, ancestors: any, childHash: string, layer: number): void
  • Performs a depth first search on the internal hierarchy model. This dfs extends the default version by keeping track of cells ancestors, but it should be only used when necessary because of it can be computationally intensive for deep searches.

    Parameters

    • parent: mxCell
    • root: mxCell
    • connectingEdge: boolean
    • visitor: any
    • seen: any
    • ancestors: any
    • childHash: string
    • layer: number

    Returns void

fixRanks

  • fixRanks(): void

initialRank

  • initialRank(): void
  • Basic determination of minimum layer ranking by working from from sources or sinks and working through each node in the relevant edge direction. Starting at the sinks is basically a longest path layering algorithm.

    Returns void

visit

  • visit(visitor: any, dfsRoots: any[], trackAncestors: boolean, seenNodes: any): void

Generated using TypeDoc