Render Graphviz graphs directly in your posts

[dot]digraph {a → b}[/dot]
[dot]digraph {a → b; a → c}[/dot]
[dot]digraph {a → b; a → c; b → c}[/dot]

3 Likes

Could you add another example?

Another “common use” might be to have a GUI screen capture where you want to annotate for a bug report or supporting a user that isn’t “getting it” from a text-only reply.

Can this be used for that ?

(Note that I’d like to use the same method for Graphviz annotating in MediaWiki. So hopefully a DOT syntax used for the GraphViz Extension for MediaWiki is the same as the one used here. Having the annotation as DOT text would make it easier for translating to other languages too.)

I’m not sure I understand exactly what you want to do. If you just want to render a graph from DOT and take a screen capture of that, you might want to try the Graphviz Visual Editor and use your computer’s built-in screen capture.

If that’s not what you want then please explain.