ElkLayoutSpec
Configures the ELK layout engine in Mermaid.
See the Mermaid docs
Properties
Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting. Implicit default is ConsiderModelOrder.NodesAndEdges.
This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops. Implicit default is CycleBreakingStrategy.GreedyModelOrder.
The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder to NODES_AND_EDGES. Implicit default of false.
Option to allow edges to share path where it's convenient. It can make for pretty diagrams but can also make it harder to read in some cases.
Elk specific option affecting how nodes are placed. Implicit default is NodePlacementStrategy.BrandesKoepf.