Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.LayeringStrategy
See Also
Constants
A layering strategy based on a breadth first search (BFS).
Remarks
All edges will span at most one layer in the resulting drawing. Edges between nodes that belong to the same layer are possible.
The nodes that will be placed in the first layer can be provided by a data provider bound to the input graph using the key CORE_NODES_DP_KEY. If this data provider is not given, then nodes that have no incoming edges are placed in the first layer.
See Also
Sample Graphs
A layering strategy which derives the layers from the initial coordinates of the nodes.
Remarks
It tries to find a layering that is similar to the one in the input graph. The layout algorithm may place nodes in the same layer, even though they are connected by an edge.
In a vertically oriented layout, nodes that overlap vertically are placed in the same layer. The same holds for a horizontally oriented layout in the case where the nodes overlap horizontally.
See Also
A layering strategy which applies a fast heuristic that improves the layering done by HIERARCHICAL_TOPMOST by shifting some nodes down.
Remarks
See Also
Sample Graphs
A layering strategy which places each node in the optimal layer to minimize the layer distances.
Remarks
See Also
Sample Graphs
A layering strategy which applies a heuristic to approximate the optimal layering.
Remarks
See Also
Sample Graphs
A layering strategy which places each node in the highest possible layer without passing its predecessor in the topological order of nodes.
Remarks
See Also
Sample Graphs
A dummy layering strategy which describes a strategy that is not part of the default strategies.
A layering strategy which uses a layer assignment specified by the user.
Remarks
The nodes' layer assignment must be provided by a data provider bound to the input graph using the key LAYER_ID_DP_KEY.
This layering strategy allows edges whose source and target share a layer.
See Also
Static Methods
Converts the argument to HierarchicLayoutLayeringStrategy.
Parameters
A map of options to pass to the method.
- value - HierarchicLayoutLayeringStrategy
- The value to convert to HierarchicLayoutLayeringStrategy.
Returns
- ↪HierarchicLayoutLayeringStrategy
- Either
value
if it is already a HierarchicLayoutLayeringStrategy or an appropriate converted value.