Hacker News new | ask | show | jobs
by haberman 4517 days ago
I'd still love to see a graphviz equivalent for JS that does layout for digraphs. This looks cool if you need undirected graphs, but doesn't seem to have any digraph support.
3 comments

The library that I make, GoJS (http://www.gojs.net/) has a tree layout and layered digraph layout, both with many options.

Here's an overview of the options for the layered digraph layout: http://www.gojs.net/latest/samples/ldLayout.html

The tree layout supports some fairly complicated tree structures, including ones that alternate or have different configurations for leaves: http://www.gojs.net/latest/samples/tLayout.html

Disclosure: I'm a developer of this library and it is not free.

Try https://github.com/cpettitt/dagre , it's using some of the latest and most performant algos, really nice + a D3 renderer.
I have never used it, but vis.js supports the DOT language.

http://visjs.org/docs/graph.html