Adding nodes in new rows in mermaid diagram

Viewed 23

I have a digram in gitlab with multiple nodes inside a common node eg:


 graph 
   subgraph Common
     subgraph AA
       subgraph AAA
         id1((AAAA))
       end
     end
       subgraph BB
         subgraph BBB
           id2((BBBB))
         end
       end
       subgraph CC
         subgraph CCC
           id3((CCCC))
         end
       end
   end

enter image description here

When i keep adding new nodes say next one D. It keeps comming in the same line is there way for me to define such that after three nodes the next ones come in the next row ie. next node DD will come below AA.

0 Answers
Related