Both could use better node layout engines and support for DOT syntax or might be easier to adapt graphviz with Emscripten.