Untitled string in Mermaid Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/properties/elk/properties/layeringStrategyElk specific option deciding which layer each node is assigned to — the column in a left-to-right diagram, the row in a top-down one. This is the coarsest of the three placement decisions, so changing it moves nodes further than anything else short of altering spacing.
NETWORK_SIMPLEX aims for the fewest long edges. LONGEST_PATH pushes every node as late as it can go. COFFMAN_GRAHAM bounds how many nodes share a layer, giving a more even, block-like shape on wide graphs. MIN_WIDTH and STRETCH_WIDTH trade edge length for a narrower or wider drawing. INTERACTIVE honours positions already on the nodes.
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | config.schema.json* |
layeringStrategy Type
string
layeringStrategy Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"NETWORK_SIMPLEX" | |
"LONGEST_PATH" | |
"LONGEST_PATH_SOURCE" | |
"COFFMAN_GRAHAM" | |
"MIN_WIDTH" | |
"STRETCH_WIDTH" | |
"INTERACTIVE" |