This interface is used by classes capable of generating a layer assignment.
Remarks
Layer assignment takes place during the first part of the hierarchical layout algorithms. During this phase, each node of the graph is assigned to a layer.
Type Details
- yFiles module
- algorithms
See Also
Methods
Assigns all nodes of the graph to layers and adds them to the layers in the given layoutContext.
Remarks
In order to create new layers, factory method insertLayer has to be used.
Information about the nodes is provided by a HierarchicalLayoutContext instance. However, positional information (see position and layer) is not available during this phase.
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
- layoutContext - HierarchicalLayoutContext
- The HierarchicalLayoutContext instance providing access to context information for the graph elements, as well as the layers the nodes are assigned to.