This class implements the layering phase of the HierarchicLayout (i.e., assignment of the nodes to layers).
Remarks
It uses topological sorting to assign layers to the nodes.
Default Values of Properties
rankingPolicy | NO_RERANKING
|
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.TopologicalLayerer
See Also
Constructors
Creates a new instance of TopologicalLayerer with default settings.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- rankingPolicy - RankingPolicy
The (re-)ranking policy used by this TopologicalLayerer instance. This option sets the rankingPolicy property on the created object.
Properties
Gets or sets the (re-)ranking policy used by this TopologicalLayerer instance.
Default Value
The default value is
NO_RERANKING.Throws
- Exception({ name: 'ArgumentError' })
- if an unknown ranking policy is given
Methods
Assigns all nodes of the graph to layers and adds them to the ILayers instance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layers - ILayers
- the ILayers instance that will be filled with the results of the calculation
- ldp - ILayoutDataProvider
- the ILayoutDataProvider used for querying information about the nodes and edges