documentationfor yFiles for HTML 2.6

ClassicOrganicLayout

A layout algorithm that arranges graphs in an organic fashion, using a force-directed drawing approach.

Inheritance Hierarchy
MultiStageLayout
ClassicOrganicLayout
Implemented Interfaces

Remarks

Layout Style

The organic layout style is characterized by a natural distribution of nodes. It is well suited to exhibit clusters and symmetric properties of a graph. Nodes are placed in a space-saving manner, close to their adjacent nodes. Distances between neighbors and edge lengths are highly uniform and edges are drawn as straight-line segments without bends.

Organic diagrams are well suited for visualizing relations in large networks, for example, in bioinformatics, enterprise networking, social networks visualization, mesh visualization or system management.

Organic layout obtained using default settings

Organic layout exposing symmetries of the graph structure

Concept

This algorithm uses a force-directed approach to place the nodes of the input graph. The graph is modeled as a physical system with forces acting on it. Nodes are considered as electrically charged particles with mutually repulsive forces. Edges are modeled as springs that attract adjacent nodes. A good diagram is obtained from an equilibrium state of the system, i.e., the nodes are rearranged based on the physical forces until the system reaches a (local) minimum of the sum of the forces.

Features

The tree beautifier feature activates a special layout style for subgraphs with a tree structure. These subgraphs will be arranged using an algorithm dedicated to tree graphs and incorporated into the main organic diagram.

Several parameters for the internal force-directed drawing algorithm can be modified. For example, the repulsion, attraction and initial temperature can be controlled. This allows experts to configure and fine-tune the algorithm with respect to their needs.

Default Values of Properties

activateTreeBeautifierfalseSubtrees are not handled differently.
considerNodeSizestrueNode sizes are considered.
deterministicfalseThe layout algorithm is non-deterministic.
groupBoundsCalculatorMinimumSizeGroupBoundsCalculator
groupNodePolicyLAYOUT
hideGroupsStageEnabledfalseThe stage responsible for hiding group nodes is activated.
maximumDuration30000
orientationLayoutEnabledtrueThe orientation is activated.
preferredEdgeLength80
scopeALL

Type Details

yfiles module
layout-organic
yfiles-umd modules
layout-multipage, layout-organic, layout
Legacy UMD name
yfiles.organic.ClassicOrganicLayout

See Also

Constructors

Properties

Methods

Constants