documentationfor yFiles for HTML 3.0.0.3

GivenLayersAssigner

This layering algorithm implementation assigns nodes to layers given a mapping of nodes to layer indices.

Inheritance Hierarchy
GivenLayersAssigner
Implemented Interfaces

Remarks

The indices are given by an IMapper<K,V> that returns the integer index of each node of the graph. The nodes are assigned to layers in the following way:
  • Nodes with the same index are placed in the same layer.
  • A node with a smaller index is placed in a layer above that of a node with a larger layer index ("above" with respect to the given LayoutOrientation, i.e., on a smaller y-coordinate for orientation top-to-bottom).
  • The given layer indices are normalized such that there are no empty layers and the smallest layer has value 0.

Type Details

yFiles module
algorithms

Constructors

Methods

Constants