Specifies different strategies for layering nodes in a HierarchicalLayout.
Type Details
- yFiles module
- algorithms
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 defined with bfsLayerAssignerCoreNodes. If there are no nodes defined, 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 placeholder 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 defined with layerIndicesResult.
This layering strategy allows edges whose source and target share a layer.
See Also
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - HierarchicalLayoutLayeringStrategy
- The value to convert to an enum constant.
Returns
- ↪HierarchicalLayoutLayeringStrategy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - HierarchicalLayoutLayeringStrategy
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.