This is preliminary documentation. You've been warned.

KLay Layered supports a whole bunch of layout options. Every single one of them is documented here.

Contents

Overview

For a general introduction on layout options, see the KIML documentation. KLay Layered supports layout options defined by KIML and defines additional custom layout options.

Supported KIML Layout Options

KLay Layered supports the following standard layout options defined by KIML. Note that the default value may be altered (highlighted yellow).

OptionIDTypeApplies toDefault
Alignmentde.cau.cs.kieler.alignmentEnumNodesAUTOMATIC
Aspect Ratiode.cau.cs.kieler.aspectRatioFloatParents1.6
Border Spacingde.cau.cs.kieler.borderSpacingFloatParents20
Comment Box XXde.cau.cs.kieler.commentBoxBooleanNodesfalse
Debug Modede.cau.cs.kieler.debugModeBooleanParentsfalse
Diagram Typede.cau.cs.kieler.diagramTypeString  
Directionde.cau.cs.kieler.directionEnumParentsRIGHT
Edge Label Placement XXde.cau.cs.kieler.edgeLabelPlacementEnumLabelsUNDEFINED
Edge Routingde.cau.cs.kieler.edgeRoutingEnumParentsPOLYLINE
Hypernode XXde.cau.cs.kieler.hypernodeBooleanNodesfalse
Label Spacing XXde.cau.cs.kieler.labelSpacingFloatEdges
Nodes
-1.0
Layout Hierarchyde.cau.cs.kieler.layoutHierarchyBooleanParentsfalse
Minimal Height XXde.cau.cs.kieler.minHeightFloat

Nodes
Parents

0.0
Minimal Width XXde.cau.cs.kieler.minWidthFloat

Nodes
Parents

0.0
No Layout XXde.cau.cs.kieler.noLayoutBoolean false
Node Label Placementde.cau.cs.kieler.nodeLabelPlacementEnumSetNodes 
Port Constraintsde.cau.cs.kieler.portConstraintsEnumNodesUNDEFINED
Port Label Placementde.cau.cs.kieler.portLabelPlacementEnumNodesOUTSIDE
Port Offset XXde.cau.cs.kieler.offsetFloatPorts 
Port Side XXde.cau.cs.kieler.portSideEnumPortsUNDEFINED
Priorityde.cau.cs.kieler.priorityIntEdges
Nodes
 
Randomization Seedde.cau.cs.kieler.randomSeedIntParents1
Separate Connected Componentsde.cau.cs.kieler.separateConnCompBooleanParentstrue
Size Constraintde.cau.cs.kieler.sizeConstraintEnumSetNodes 
Size Optionsde.cau.cs.kieler.sizeOptionsEnumSetNodesDEFAULT_MINIMUM_SIZE
Spacingde.cau.cs.kieler.spacingFloatParents20

Custom Layout Options

OptionIDTypeApplies toDefault
Crossing Minimizationde.cau.cs.kieler.klay.layered.crossMinEnumParentsLAYER_SWEEP
Cycle Breakingde.cau.cs.kieler.klay.layered.cycleBreakingEnumParentsGREEDY
Distribute Nodes
(currently unsupported)
de.cau.cs.kieler.klay.layered.distributeNodesBooleanParentsfalse
Edge Spacing Factorde.cau.cs.kieler.klay.layered.edgeSpacingFactorFloatParents0.5
Feedback Edgesde.cau.cs.kieler.klay.layered.feedBackEdgesBooleanParentsfalse
Fixed Alignmentde.cau.cs.kieler.klay.layered.fixedAlignmentEnumParentsNONE
Interactive Reference Pointde.cau.cs.kieler.klay.layered.interactiveReferencePointEnumParentsCENTER
Label Sidede.cau.cs.kieler.klay.layered.LabelSideEnumParentsSMART
Layer Constraintde.cau.cs.kieler.klay.layered.layerConstraintEnumNodesNONE
Merge Edgesde.cau.cs.kieler.klay.layered.mergePortsBooleanParentsfalse
Node Layeringde.cau.cs.kieler.klay.layered.nodeLayeringEnumParentsNETWORK_SIMPLEX
Node Placementde.cau.cs.kieler.klay.layered.nodePlaceEnumParentsBRANDES_KOEPF
Port Anchor Offsetde.cau.cs.kieler.klay.layered.portAnchorObjectPorts 
Thoroughnessde.cau.cs.kieler.klay.layered.thoroughnessIntParents7

The Most Important Options

TODO: Write a bit of documentation about the most important layout options and how to use them, possibly with a simple example or something.

Detailed Documentation

This section explains every layout option in more detail. See the KIML documentation for more information on KIML layout options. Those options are only mentioned here if KLay Layered adds some custom behavior.

Crossing Minimization

Crossing minimization determines the ordering of nodes in each layer, which influences the number of edge crossings. This option switches between one of several algorithms that can be used to minimize crossings. Possible values are:

Cycle Breaking

KLay Layered tries to position nodes in a way that all edges point rightwards. This is not possible if the input graph has cycles. Such cycles have to be broken by reversing as few edges as possible. The reversed edges end up pointing leftwards in the resulting diagram. There are different cycle breaking algorithms available:

Edge Spacing Factor

The edge spacing factor determines the amount of space between edges, relative to the regular Spacing value. The idea is that we don't need as much space between edges as we do between nodes.

Interactive Reference Point

Interactive layering, crossing minimization, and cycle breaking algorithms use node positions to sort nodes into layers or to determine the order of nodes in each layer. However, it is unclear if for example the top left corners of nodes should be compared, or the bottom left corners — different settings might lead to different results. The interactive reference point determines which part of nodes is used to compare their positions. It provides the following settings:

Thoroughness

There are heuristics in use all over KLay Layered whose results often improve with the number of iterations computed. The thoroughness is a measure for telling KLay Layered to compute more iterations to improve the quality of results, at the expense of performance.