Eclipse Layout Kernel Documentation

ELK Force


Identifier: org.eclipse.elk.force
Meta Data Provider: properties.ForceMetaDataProvider

Description

Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported.

Category: Force

Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.

Supported Graph Features

Name Description
Multi Edges Multiple edges with the same source and target node.
Edge Labels Labels that are associated with edges.

Supported Options

Option Type Default Value Identifier
Aspect Ratio double 1.6f org​.eclipse​.elk​.aspectRatio
Eades Repulsion double 5.0 org​.eclipse​.elk​.force​.repulsion
Edge Label Spacing double 5 org​.eclipse​.elk​.spacing​.edgeLabel
Force Model ForceModelStrategy ForceModelStrategy.FRUCHTERMAN_REINGOLD org​.eclipse​.elk​.force​.model
FR Temperature double 0.001 org​.eclipse​.elk​.force​.temperature
Interactive boolean false org​.eclipse​.elk​.interactive
Iterations int 300 org​.eclipse​.elk​.force​.iterations
Node Spacing double 80 org​.eclipse​.elk​.spacing​.nodeNode
Padding ElkPadding new ElkPadding(50) org​.eclipse​.elk​.padding
Port Constraints PortConstraints PortConstraints.UNDEFINED org​.eclipse​.elk​.portConstraints
Priority int 1 org​.eclipse​.elk​.priority
Randomization Seed int 1 org​.eclipse​.elk​.randomSeed
Repulsive Power int 0 org​.eclipse​.elk​.force​.repulsivePower
Separate Connected Components boolean true org​.eclipse​.elk​.separateConnectedComponents