BfsLayerAssigner uses a breadth-first search for assigning layers to the nodes.
Implements
- I
Remarks
The nodes of the first layer can be freely selected (see bfsLayerAssignerCoreNodes). The nodes that belong to a subsequent layer are determined as follows: Add all yet unassigned nodes to the new layer that are connected to nodes already assigned. As a consequence, all connected nodes will be at most one layer apart. Also, edges between nodes that belong to the same layer are possible.
See Also
Developer's Guide
Members
Show:
Constructors
Creates an instance of BfsLayerAssigner.
Creates an instance of BfsLayerAssigner.
Methods
Assigns all nodes of the graph to layers and adds them to the layers instance in the given layoutContext.
Assigns all nodes of the graph to layers and adds them to the layers instance in the given
layoutContext.Parameters
- graph: LayoutGraph
- The input graph
- layoutContext: HierarchicalLayoutContext
- The HierarchicalLayoutContext used for querying information about the nodes and edges
Implements
ILayerAssigner.assignLayersConstants
All constants are filtered. Go to Filters.