Mermaid: Graphviz DOT syntax

Created on 29 Nov 2014  路  11Comments  路  Source: mermaid-js/mermaid

It looks like Mermaid is in many ways similar to Graphviz's DOT language. I just came across Viz.js, which attempts to bring that to the Web. Any reason you're not adopting DOT syntax? It seems like it would be more useful to collaborate on this.

Other

Most helpful comment

I concur with the above comment, Mermaid is very similar in concept to graphviz (an AT&T project which was the originator of DOT). This happens a lot is the JS world q.v. the proliferation of JS build systems that do not learn from the mistakes of the past and offer a meagre portion of the functionality of Make.

"Although in Science they have seen further by standing on the shoulders of giants; in computing, we mostly stand on each other's feet." -- Richard Wesley Hamming

All 11 comments

I was striving for simplicity and was prepared to sacrifice some functionality to achieve that. DOT is great and very versatile but I wanted something you can grasp without much explanations.

Perhaps you can see mermaid syntax vs DOT as markdown vs HTML/CSS. That was the original intention anyway. :)

Basic DOT is highly readable though. Personally, I'd prefer a subset of DOT over an "entirely new" language. That's not to say that I don't appreciate your effort, of course.

Yeah, I agree with timdp. I think forking the DOT language is actively harmful. It's a very simple language, unlike HTML, and the changes you've made don't really simplify it, they just change it. I'd focus on making a good renderer, but stick to DOT syntax.

I have to agree. I just learned about mermaid and my first thought was "this looks a lot like Dot". Mermaid looks really nice and it allow inline processing, which is awesome for web-based applications. But having a Dot-compatible language would make it possible to easily acquire thousands of users and tools that know and generate Dot.

Mermaid will have different graph types with different grammars. One example is sequence diagrams. On that note there will be an architecture permitting this. In that light it would be "inline" with the concept to have a dot grammar using the same rendered as the current flow chart renderer. Will provide stubs for the grammar as alpha and lets see where it goes.

Look at the experimental support. See it as a proof of concept/prototype.

I concur with the above comment, Mermaid is very similar in concept to graphviz (an AT&T project which was the originator of DOT). This happens a lot is the JS world q.v. the proliferation of JS build systems that do not learn from the mistakes of the past and offer a meagre portion of the functionality of Make.

"Although in Science they have seen further by standing on the shoulders of giants; in computing, we mostly stand on each other's feet." -- Richard Wesley Hamming

Graphviz/Viz.js fit the niche quite easily. There is nothing in this project that would constitute an improvement over Graphviz and its descendants.

:+1: for incorporating DOT syntax, there seems no reasonable excuse not to.

As @sleepyfox noted, let's stand on shoulders not on feet.

:+1: for DOT support. Even if this is an add-on. Seems like there's some similarities with the relationship notation you've done for mermaid. Though I agree with the sentiment of most of these comments, I still think there's room for a new (more web-centric?) approach to making these kind of graph notations clear, useful, and interconnected with more data.

Close it. Since it is a question and there hasn't been active activity here for almost 3 years.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lwalker-kforce picture lwalker-kforce  路  3Comments

mestaritonttu picture mestaritonttu  路  3Comments

michaeltlombardi picture michaeltlombardi  路  3Comments

tylerlong picture tylerlong  路  5Comments

deftdawg picture deftdawg  路  3Comments