A test of Markdown and Mermaid support in Github
graph TD
a-->b
b-->c
c-->b
c---d
subgraph e
end
subgraph f
g---h
end
b-->f
Same thing, but Left to Right (LR) instead of Top Down (TD):
graph LR
a-->b
b-->c
c-->b
c---d
subgraph e
end
subgraph f
g---h
end
b-->f
A fancier version
graph TD
a([Hello])-->b((World))
b-->c[More Words]
c-->|back at you|b
c---d[Like So]
subgraph e[All alone]
end
subgraph f[Straight line here]
g---|here really|h
end
b-->f
Note I use the MarkDown Viewer Chrome Extension to preview these files before pushing them to Github. It's a little tricky to setup but there are some instructions at that link. You need to install it in Chrome, then maybe watch the video, but turn on Mermaid support and enable local file system access. Then open your file by going to file:///Users/ in the Chrome address bar and locating it from there.