C

GivenLayersAssigner

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

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.

See Also

Developer's Guide

Members

Show:

Constructors

Creates an instance of GivenLayersAssigner.

Methods

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

Constants

All constants are filtered. Go to Filters.