Support organic / force-directed / spring graph layout(s) or renderer(s) #4728
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Enhancement
New feature or request
Type: New Diagram
Proposal
Graphs currently can only be laid out in a hierarchical manner that primarily relies, in an often tough to reason about manner, on the order that the relationships were entered in the Mermaid Markdown. It would be great if graphs could be automatically laid out according to a "blow-out" algorithm that can be referred to as organic, force-directed, spring, etc. since there are different algorithms to accomplish this.
It is unclear whether this belongs as a new diagram or new syntax proposal as it's really neither, but these are the only two relevant choices.
This has also been proposed before but was automatically closed, at least twice, in #806 and #867.
Use Cases
For these reasons, I'm currently going to have to use Graphviz instead of Mermaid. This is unfortunate since GitHub and several static website tools, like Jekyll, support rendering Mermaid diagrams.
Screenshots
To my knowledge, something like this is not currently possible with Mermaid:
Syntax
Maybe something like:
for force-directed? Any other keyword would be fine. I don't think this is much of a syntactical problem as it is an engine problem.
Implementation
None
The text was updated successfully, but these errors were encountered: