documentationfor yFiles for HTML 2.6

OrganicRemoveOverlapsStage

This layout stage removes node overlaps while changes to the original layout structure are avoided and a specified minimum node distance is guaranteed.

Inheritance Hierarchy
LayoutStageBase
OrganicRemoveOverlapsStage
Implemented Interfaces

Remarks

Layout Style

Unlike the overlap removal approach implemented by RemoveOverlapsStage, this stage tries to keep the original layout structure, i.e., it tries to keep the geometric distances between the nodes.

The strategy for removing overlaps is similar to the layout strategy used by organic (force-directed) layout algorithms (e.g. OrganicLayout). Therefore, this stage is especially well suited to remove node overlaps in undirected graph drawings with straight-line edges, as produced by organic layout approaches.

A graph containing overlaps (left) and the result after applying this layout stage

Features

It is possible to define a minimum distance between nodes. This feature allows to not only remove overlaps but forces nodes to keep the specified distance to other nodes.

Nodes can be marked as fixed. Such nodes will not be moved during the overlap removal process. A IDataProvider with key FIXED_NODE_DP_KEY can be registered to mark the fixed nodes. Note that inputs with fixed nodes may significantly increase the overall runtime. Hence class ShuffleLayout may be the better choice for such inputs.

Default Values of Properties

coreLayoutnull
maximumDuration<code>0x7FFFFFFF</code>
minimumNodeDistance10

Type Details

yfiles module
layout-organic
yfiles-umd modules
layout-multipage, layout-organic, layout
Legacy UMD name
yfiles.organic.OrganicRemoveOverlapsStage
Overlaps between nodes and edges are not removed by this stage.
This stage does not directly support group nodes. However, if the graph contains groups, this stage can be applied as core layout algorithm of the RecursiveGroupLayout.

Constructors

Properties

Methods

Constants