Layout Features Tutorial

Organic Layout

This demo shows basic configuration options for the Organic Layout. The default behavior is modified in various ways, some of which are described below:

  • The layout is configured to be deterministic, which causes the layout algorithm to produce identical results for identical input graphs and identical settings.
  • The preferred edge length is increased.
  • The compactness factor has been increased to yield a more compact layout. For small values, the resulting layout will use a lot of space and nodes tend to be far away from each other. Whereas values near 1.0 produce highly compact layouts.
  • To prevent labels from overlapping, the node label awareness is enabled.
  • The automatic overlap avoidance is disabled, so a manually chosen minimum distances between nodes is applied.
  • An output restriction is applied to create a result that is wider than tall.

Code Snippet

A quick glance at the source for the configuration can be taken at GitHub.

Demos

The Layout Styles demo showcases even more configuration options for the organic layout algorithm.

Documentation

The Developer's Guide provides in-depth information about Organic Layout and its features.