Layout stage that can be used to normalize the order of the elements within a graph.
Namespace: yWorks.yFiles.LayoutAssembly: yWorks.yFilesWPF.Algorithms (in yWorks.yFilesWPF.Algorithms.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class NormalizingGraphElementOrderStage : AbstractLayoutStage |
| Visual Basic |
|---|
Public Class NormalizingGraphElementOrderStage _ Inherits AbstractLayoutStage |
Remarks
Layout stage that can be used to normalize the order of the elements within a graph. Amongst 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 layout stage 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 Comparable value using DataProviders
registered with the key
ComparableNodeDpKey
, or
ComparableEdgeDpKey
respectively.
the DataProvider key
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout..::..NormalizingGraphElementOrderStage
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout..::..NormalizingGraphElementOrderStage