Hi, Big Big fan of yEd but how can you do text to diagram with it? Do you write the .graphml file by hand (never looked it up, might be easier than I think!). Any pointers?
Also, looking up the license some time ago it seemed the free license prevented you from doing automatic diagram generation with yEd?
Yeah, I'd say yEd fits into the same category the author noted at the very beginning: It's a graphical tool for creating graphs. yEd does support several file formats to import, some of which are text-based, e.g. TGF, but they're not terribly convenient to input directly.
And indeed, yEd is free, but intentionally lacks mechanisms (and the permission) of automating it. Those use cases are usually far better served by licensing the underlying graph drawing/analysis/layout library.
It's quite buggy though, and seemingly unmaintained. I'm hoping to spare a weekend or two sometime in the near future to write a replacement but we'll see..
I'm not a huge fan of most of the rest of the text-to-graph tools because they give me so little control over how things are laid out, and while there are ways to give layout hints, it feels like an uphill battle to get them to reproduce the information you have in your head / on paper.
One thing I’ve discovered about not having layout control is that the resulting graph complexity can help give you a hint about the correctness of your solution.
A couple of years ago I was helping to architect a new system and I decided to use yUML to start showing snippets of what I was thinking. Ultimately everyone starting adding every detail and the picture was unreadable. As we kept iterating we kept updating our yUML text and one time the graph came out beautiful. That actually ended up being really close to the solution we implemented.
yUML uses graphviz with the layout set for minimum line crossing. So when your graph looks good and is easy to layout without tons on lines crossing you can use that as a hint that you’re on the right track to a solution that you can keep in your head. And it’s always easier to engineer what you can keep in your head.
I wish there was something that consumed a text description like Mermaid and outputted LibreOffice Draw files. Because I'll need to hand the file out to someone and it will possibly be maintained/modified in the future, but putting in all the boxes and lines by hand is driving me mad.
13 comments
[ 3.4 ms ] story [ 42.3 ms ] threadGephi is also quite popular https://gephi.org/
Also, looking up the license some time ago it seemed the free license prevented you from doing automatic diagram generation with yEd?
And indeed, yEd is free, but intentionally lacks mechanisms (and the permission) of automating it. Those use cases are usually far better served by licensing the underlying graph drawing/analysis/layout library.
It's quite buggy though, and seemingly unmaintained. I'm hoping to spare a weekend or two sometime in the near future to write a replacement but we'll see..
I'm not a huge fan of most of the rest of the text-to-graph tools because they give me so little control over how things are laid out, and while there are ways to give layout hints, it feels like an uphill battle to get them to reproduce the information you have in your head / on paper.
A couple of years ago I was helping to architect a new system and I decided to use yUML to start showing snippets of what I was thinking. Ultimately everyone starting adding every detail and the picture was unreadable. As we kept iterating we kept updating our yUML text and one time the graph came out beautiful. That actually ended up being really close to the solution we implemented.
yUML uses graphviz with the layout set for minimum line crossing. So when your graph looks good and is easy to layout without tons on lines crossing you can use that as a hint that you’re on the right track to a solution that you can keep in your head. And it’s always easier to engineer what you can keep in your head.
It’s been a good heuristic for me over the years.
Online: https://www.draw.io/
Desktop: https://github.com/jgraph/drawio-desktop/releases/
Example diagrams: https://about.draw.io/features/examples/
Source code: https://github.com/jgraph/drawio
[1] https://pypi.org/project/sphinxcontrib-sdedit/
[2] http://sdedit.sourceforge.net/