Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Bidirectional Arrows in graphs not working

A topic by antibyte created Oct 27, 2021 Views: 527 Replies: 2
Viewing posts 1 to 3

According to the Mermaid docs 

a<--->b

should draw arrows on both sides. This does not work for me.

(2 edits)

Hi,

I believe that bidirectional arrows are currently only supported in some chart types. For instance, they’re not supported in ‘graph’ charts, but are supported in ‘flowcharts’:

https://mermaid-js.github.io/mermaid/#/flowchart?id=multi-directional-arrows

This should work:

flowchart TD;
    A<-->B;
    A<-->C;
    B<-->D;
    C<-->D;

While this won’t:

graph TD;
    A<-->B;
    A<-->C;
    B<-->D;
    C<-->D;

If that doesn’t sound like what’s going on, please share your chart code and current Deepdwn version and I can take a look.

(+1)

Thank you, using flowchart instead of graph does the trick.