Skip navigation links

Package com.yworks.yfiles.layout.hierarchic

Provides hierarchic layout style algorithms.

See: Description

Package com.yworks.yfiles.layout.hierarchic Description

Provides hierarchic layout style algorithms.

In the hierarchic layout style, nodes are distributed into layers such that most of the edges point to the main layout direction, i.e., the layer of the edge's source is smaller than that of the target. The order of the nodes within the layers ensures that the number of edge crossings is as small as possible. Also, different edge routing styles i.e., polyline, octilinear, orthogonal are supported.

The main class is HierarchicLayoutCore. However, users should use class HierarchicLayout that offers a facade to this layouter.

The main steps of the HierarchicLayout are performed by implementations of the following interfaces:

Furthermore, IIncrementalHintsFactory provides the interface to determine which elements will be inserted incrementally into a given drawing of the input graph.

Example graphs

Default hierarchic layout

Hierarchic layout with swimlanes and polyline routing

Hierarchic layout with groups and octilinear routing

Related Documentation

See the yFiles Developer's Guide section on Hierarchical Layout Style for descriptions of the yFiles hierarchical layout style algorithms.

Skip navigation links
© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.