6 ms·
As much as I like Graphviz (and I've been using it for ages) I keep looking for an equivalent with two features: - Nicer, more modern looks (the original is to
by rcarmo 6y ago
As much as I like Graphviz (and I've been using it for ages) I keep looking for an equivalent with two features:
- Nicer, more modern looks (the original is too... LaTeX-y for my tastes)
- A different layout engine that uses straight arrows and 90 degree turns
So far I haven't been able to find any good replacements, although a few JS libraries come reasonably close.
- enriquto 6y ago> Nicer, more modern looks (the original is too... LaTeX-y for my tastes) Can you explain what do you mean by that, exactly? I think the looks of graphviz graphs are exceedingly beautiful and I cannot imagine a better looking way of drawing graphs (other than some minor technical issues with font kerning).
- bvrmn 6y agoMy top graphviz issues. * Automatic edge placement can lead to visually ambiguous results and it is very hard to tweak it. * Edge title placement engine is sort of naive and best solution is to not use edge titles at all. * Bogus text wrapping. Text can leak outside of the node box. * Default margins and padding lead to visual clutter.
- weinzierl 6y agoI was about to summarize my pain points but you covered them all and expressed them better than I could. What I often find difficult is to reliably prevent overlap, I would subsume that under you last point about margins and paddings.
- deleted 6y ago[deleted]
- ribasushi 6y ago> A different layout engine that uses straight arrows and 90 degree turns It's not a property of the engine but of the graph itself: http://www.graphviz.org/doc/info/attrs.html#d:splines http://www.graphviz.org/doc/info/attrs.html#d:splines https://stackoverflow.com/a/9055243 https://stackoverflow.com/a/9055243
- deleted 6y ago[deleted]
- withinboredom 6y agoI use mermaid when I need a graph in markdown along with the mermaid extension to render it inline.
- cm2187 6y agoAlso I think graphviz is a great tool when you want to generate some diagrams quickly and don't care too much about the design. If you have a precise idea of how it should look, it is possible to force it to look that way but it becomes a lot of work (with a complex logic of clusters, ranks, groups, etc).
- afterburner 6y agoMy main complaint.
- prepend 6y agoI was thinking that a d3 implementation would help with this, except for the 90 degree, and found a project [0]. It’s not a force directed graph, but does seem to me to look better. And since the output is javascript it can be styled and formatted as you like it. [0] https://github.com/magjac/d3-graphviz https://github.com/magjac/d3-graphviz
- leejoramo 6y agoIt has been over a decade since I did this regularly, but I would import my Graphviz files into the excellent OmniGraffle (macOS) to provide what ever styling I wanted, and use a variety of highly configurable layout engines. Almost certain that the "straight arrows and 90 degree turns" layout is in there. OmniGraffle is one of the best commercial software packages every developed. Well worth a look if you are on macOS
- RobinL 6y agoPossibly Elk? - there's a simple start notebook here: https://observablehq.com/@tmcw/elk https://observablehq.com/@tmcw/elk and example of more complex output here: https://observablehq.com/@observablehq/notebook-visualizer-elk-edition https://observablehq.com/@observablehq/notebook-visualizer-e...
- deleted 6y ago[deleted]
- hugozap 6y agoI've been working on diagram.codes, it's not a replacement for Graphviz as my goal is to have a self contained tool that is friendly to non technical users (so flexibility is sacrificed for some diagrams), you may find it useful.
- klodolph 6y agoAny time Graphviz is not enough for whatever reason, I’ll usually reach for TikZ. This is part of the TeX ecosystem, but I often use Graphviz by itself and paste the resulting images into web pages, presentations, or design docs. TikZ lets you control the path of arrows to a fault, so you can easily get the straight arrows and 90-degree turns, rather than the “anything goes” automatic layout that you get in Graphviz. I use it pretty often to illustrate state machines, system diagrams, or flowcharts. Well, or I’ll reach for Inkscape.