Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphviz DOT syntax #5

Closed
timdp opened this issue Nov 29, 2014 · 16 comments
Closed

Graphviz DOT syntax #5

timdp opened this issue Nov 29, 2014 · 16 comments
Labels
Type: Other Not an enhancement or a bug

Comments

@timdp
Copy link

timdp commented Nov 29, 2014

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.

@knsv
Copy link
Collaborator

knsv commented Dec 1, 2014

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. :)

@timdp
Copy link
Author

timdp commented Dec 1, 2014

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.

@knsv knsv added the Type: Other Not an enhancement or a bug label Dec 1, 2014
@dmd
Copy link

dmd commented Dec 3, 2014

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.

@zzamboni
Copy link

zzamboni commented Dec 3, 2014

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.

@knsv
Copy link
Collaborator

knsv commented Dec 4, 2014

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.

@knsv
Copy link
Collaborator

knsv commented Dec 4, 2014

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

@sleepyfox
Copy link

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

@Hunter-Github
Copy link

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

@jasonm23
Copy link

👍 for incorporating DOT syntax, there seems no reasonable excuse not to.

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

bjowes added a commit that referenced this issue Jan 14, 2015
@greacen
Copy link

greacen commented May 6, 2015

👍 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.

@tylerlong
Copy link
Collaborator

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

knsv pushed a commit that referenced this issue Dec 11, 2019
knsv pushed a commit that referenced this issue Dec 23, 2019
knsv pushed a commit that referenced this issue Jun 19, 2020
@Utopiah
Copy link

Utopiah commented May 17, 2021

Naive question as I'm just discovered the project but mermaid depends on graphlib and graphli` does have a DOT parser so I'm wondering if it's now being support and if not, what's blocking?

knsv pushed a commit that referenced this issue Aug 4, 2021
Bumps [d3](https://github.com/d3/d3) from 5.16.0 to 7.0.0.
- [Release notes](https://github.com/d3/d3/releases)
- [Changelog](https://github.com/d3/d3/blob/main/CHANGES.md)
- [Commits](d3/d3@v5.16.0...v7.0.0)

---
updated-dependencies:
- dependency-name: d3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
mgenereu referenced this issue in mgenereu/mermaid Jun 25, 2022
add overflow-x: auto to view container
mgenereu referenced this issue in mgenereu/mermaid Jun 25, 2022
@ooker777
Copy link

"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

FWIW I'm unable to confirm if this quote was actually said by him. Nevertheless he did say this:

Indeed, one of my major complaints about the computer field is that whereas Newton could say, "If I have seen a little farther than others, it is because I have stood on the shoulders of giants," I am forced to say, "Today we stand on each other's feet." Perhaps the central problem we face in all of computer science is how we are to get to the situation where we build on top of the work of others rather than redoing so much of it in a trivially different way. Science is supposed to be cumulative, not almost endless duplication of the same kind of things.

@ooker777
Copy link

ooker777 commented Jul 2, 2022

Anyway, I wonder why there isn't a tool to convert mermaid and dot formats online?

@timdp
Copy link
Author

timdp commented Jul 2, 2022

There's at least one: https://kroki.io/

@jasonm23
Copy link

jasonm23 commented Jul 2, 2022

I mean there's github. 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Other Not an enhancement or a bug
Projects
None yet
Development

No branches or pull requests