Skip to content

ELK layout with mergeEdges enabled does not render correctly in subgraphs #290

@raijinsetsu

Description

@raijinsetsu

Describe the bug
When using mermaid.ai, setting the configuration, as described below, does not merge the edges subgraphs.

To Reproduce
Use this chart:

---
config:
    layout: elk
    elk:
        mergeEdges: true
---
flowchart TD
    %% first workaround attempt
    A
    B
    C

    subgraph S1
        A & B --> C
    end

    %% second workaround attempt
    subgraph S2
        D
        E
        F
    end

    D & E -->  F

Expected behavior
The the subgraphs should render the same as:

---
config:
    layout: elk
    elk:
        mergeEdges: true
---
flowchart TD
    A & B --> C

    D & E -->  F

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 147.0.7727.57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions