Live data from Hacker News

WebGraphviz: Graphviz in the Browser

webgraphviz.com

1–10 of 22 posts

Re: WebGraphviz: Graphviz in the Browser

#2
This brings back memories of a similar port of Graphviz to the web I started (then unfortunately abandoned) years ago; it's likely this is way more optimized, but perhaps my project can serve as illustrative of what's needed for an Emscripten port: https://github.com/bpartridge/graphviz.js

EDIT: or rather, what was needed for such a port a few years ago; I think it's been made much simpler since then!

Re: WebGraphviz: Graphviz in the Browser

#5
Does anyone know of a tool that draws graphs that obey angular constraints? I made a tool that drew acyclic graphs this way [1] but for graphs containing cycles it suddenly becomes a nonlinear problem that (I think) needs CAD-style geometric constraint solving. I plan to implement this sort of thing in the tool eventually, but it'd be easier if there was something already available.

[1] https://github.com/SeanDS/optivis

Re: WebGraphviz: Graphviz in the Browser

#7
post #2

This brings back memories of a similar port of Graphviz to the web I started (then unfortunately abandoned) years ago; it's likely this is way more optimized, but perhaps my project can serve as illustrative of what's needed for an Emscripten port: https://github.com/bpartridge/graphviz.js EDIT: or rather, what was needed for such a port a few years ago; I think it's been made much simpler since then!

For current tools, I was looking into online Graphviz renderers a few months ago. My take on things:

http://viz-js.com/ - Almost live updating. Quite fast, looks good, has lots of flexibility in output format.

http://www.webgraphviz.com/ - If you don't want any chance of data going to an external server, this can be saved locally and works fine.

Re: WebGraphviz: Graphviz in the Browser

#8
post #5

Does anyone know of a tool that draws graphs that obey angular constraints? I made a tool that drew acyclic graphs this way [1] but for graphs containing cycles it suddenly becomes a nonlinear problem that (I think) needs CAD-style geometric constraint solving. I plan to implement this sort of thing in the tool eventually, but it'd be easier if there was something already available. [1] https://github.com/SeanDS/opti…

i think you could fairly easily encode the layout/constraint solving portion of that as an SMT problem in nonlinear real arithmetic. which dReal should be able to solve https://dreal.github.io/
Post reply on HN