Skip to content
D
Documentation

ELKLayoutOptions

reference
2 min readUpdated

Import it from @grafloria/engine.

Also has every member of LayoutOptions, listed on its own entry.

ELK-specific layout options

ts
interface ELKLayoutOptions extends LayoutOptions

Properties

NameTypeDefaultDescription
algorithmELKAlgorithmELK algorithm to use
'elk.direction'?'RIGHT' | 'LEFT' | 'DOWN' | 'UP'Layout direction
'elk.spacing.nodeNode'?numberSpacing between nodes
'elk.spacing.edgeNode'?numberSpacing between edges and nodes
'elk.spacing.edgeEdge'?numberSpacing between edges
'elk.spacing.edgeLabel'?numberSpacing between an edge and its label
'elk.layered.spacing.nodeNodeBetweenLayers'?numberSpacing between nodes in different layers
'elk.layered.spacing.edgeNodeBetweenLayers'?numberSpacing between edges and nodes in different layers
'elk.layered.nodePlacement.strategy'?| 'SIMPLE' | 'INTERACTIVE' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF' | 'NETWORK_SIMPLEX'Node placement strategy for layered algorithm
'elk.layered.crossingMinimization.strategy'?'LAYER_SWEEP' | 'INTERACTIVE'Crossing minimization strategy
'elk.force.repulsion'?numberRepulsion force strength
'elk.force.temperature'?numberTemperature for force algorithm
'elk.force.iterations'?numberNumber of iterations for force algorithm
'elk.radial.radius'?numberRadius for radial layout
'elk.radial.compaction'?booleanWhether to compact radial layout
hierarchyHandling?'INCLUDE_CHILDREN' | 'SEPARATE_CHILDREN'How to handle hierarchical graphs
edgeRouting?'ORTHOGONAL' | 'POLYLINE' | 'SPLINES'Edge routing style
'elk.direction'?'RIGHT' | 'LEFT' | 'DOWN' | 'UP'Layout direction
'elk.spacing.nodeNode'?numberSpacing between nodes
'elk.spacing.edgeNode'?numberSpacing between edges and nodes
'elk.spacing.edgeEdge'?numberSpacing between edges
'elk.spacing.edgeLabel'?numberSpacing between an edge and its label
'elk.layered.spacing.nodeNodeBetweenLayers'?numberSpacing between nodes in different layers
'elk.layered.spacing.edgeNodeBetweenLayers'?numberSpacing between edges and nodes in different layers
'elk.layered.nodePlacement.strategy'?| 'SIMPLE' | 'INTERACTIVE' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF' | 'NETWORK_SIMPLEX'Node placement strategy for layered algorithm
'elk.layered.crossingMinimization.strategy'?'LAYER_SWEEP' | 'INTERACTIVE'Crossing minimization strategy
'elk.force.repulsion'?numberRepulsion force strength
'elk.force.temperature'?numberTemperature for force algorithm
'elk.force.iterations'?numberNumber of iterations for force algorithm
'elk.radial.radius'?numberRadius for radial layout
'elk.radial.compaction'?booleanWhether to compact radial layout

Was this page helpful?

ELKLayoutOptions — Grafloria