Mermaid: Subgraph issues

Created on 3 Sep 2020  路  2Comments  路  Source: mermaid-js/mermaid

You cannot link a sub subgraph to an outer subgraph.

flowchart TD

subgraph one[One]
    subgraph sub_one[Sub One]
        _sub_one
    end
end

subgraph two[Two]
    _two
end

sub_one --> two

Another issue is that you can only can use one of the following connection

flowchart TD

subgraph one[One]
    subgraph sub_one[Sub One]
        _sub_one
    end
    subgraph sub_two[Sub Two]
        _sub_two
    end
    _one
end

%% here, either the first or the second one
sub_one --> sub_two
_one --> b
Triage Bug / Error

Most helpful comment

Thanks for reporting! In 8.8.1 changes to subgraphs is coming. Resolution to #1602 will be part of that release but this issue also triggered one additional problem that could thus be resolved. I am adding your examples to the rendering tests for flowchart.

All 2 comments

Got the same issue, there is a lot of errors when linking subgraph ...
In order to reduce my number of links, I try the flowchart but I got so many errors, here is an example below.

working graph

non working flowchart

Thanks for reporting! In 8.8.1 changes to subgraphs is coming. Resolution to #1602 will be part of that release but this issue also triggered one additional problem that could thus be resolved. I am adding your examples to the rendering tests for flowchart.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deftdawg picture deftdawg  路  3Comments

yk-liu picture yk-liu  路  4Comments

lumenwrites picture lumenwrites  路  5Comments

lth946965333 picture lth946965333  路  3Comments

tylerlong picture tylerlong  路  5Comments