Layerer that uses a breadth first search to assign layers to the nodes.

Namespace: yWorks.yFiles.Layout.Hierarchic
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public class BFSLayerer : ILayerer, ILayerer
Visual Basic
Public Class BFSLayerer _ Implements ILayerer, ILayerer

Remarks

Layerer that uses a breadth first search to assign layers to the nodes. The nodes of the first layer can be freely chosen (see CoreNodesDpKey ). The nodes belonging 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.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Layout.Hierarchic..::..BFSLayerer

See Also