documentationfor yFiles for HTML 2.6

NormalizeGraphElementOrderStage

NormalizeGraphElementOrderStage normalizes the order of the elements within a graph to ensure the same order for multiple layout invocations.

Inheritance Hierarchy
LayoutStageBase
NormalizeGraphElementOrderStage
Implemented Interfaces

Remarks

Among other factors, the results produced by layout algorithms usually depend on the order of the nodes and edges within a graph. Unfortunately, useful operations such as hiding or unhiding elements from a graph or simply invoking layout algorithms on a graph will have the potential side effect of changing that order.

With this ILayoutStage it is possible to establish a predefined order of nodes and edges within a graph to avoid non-deterministic layout behavior. Defining the order of nodes and edges is done by associating each node or edge in the graph with a IComparable value using a IDataProvider registered with the key NODE_COMPARABLE_DP_KEY or EDGE_COMPARABLE_DP_KEY, respectively.

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.NormalizeGraphElementOrderStage

Constructors

Properties

Methods

Constants

Static Methods