2 ms·
I just found out that graphviz supports json as output. Check out https://graphviz.org/doc/info/output.html#d:json https://graphviz.org/doc/info/output.html#d:j
by nextaccountic 6y ago
I just found out that graphviz supports json as output. Check out https://graphviz.org/doc/info/output.html#d:json https://graphviz.org/doc/info/output.html#d:json
(found this here https://stackoverflow.com/a/51443514 https://stackoverflow.com/a/51443514)
I'm pretty sure that there's some tool out there to convert Graphviz's own json format back to dot
Perhaps https://github.com/jsongraph/jgf-dot https://github.com/jsongraph/jgf-dot do it
And if not, https://codefreezr.github.io/awesome-graphviz/#generators-and-translators https://codefreezr.github.io/awesome-graphviz/#generators-an... might contain something useful
- rudolph9 6y agoCool! Can you use the json as input?
- nextaccountic 6y agoI suppose https://github.com/jsongraph/jgf-dot https://github.com/jsongraph/jgf-dot does exactly that, but not exactly with Graphviz's own json syntax, but using this spec: https://github.com/jsongraph/json-graph-specification https://github.com/jsongraph/json-graph-specification