Live data from Hacker News

Sigma.js, a JavaScript library dedicated to graph drawing

sigmajs.org

21–30 of 38 posts

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#21

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.

I have never used it, but vis.js supports the DOT language.

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

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#22

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.

Try https://github.com/cpettitt/dagre , it's using some of the latest and most performant algos, really nice + a D3 renderer.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#23
post #8
post #3

What are the strengths of this library, relative to D3? How does Sigma work differently?

Sigma is significantly faster than D3 for drawing large graphs; however, it's only able to draw graphs. D3 is a multipurpose library for many different kinds of visualizations.

Are you comparing Sigma with using D3 with SVG? One could also use a canvas to make it render faster.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#24
post #14

Looks great, but I think it would benefit a lot from more examples. :)

You can check the examples in the repository: https://github.com/jacomyal/sigma.js/wiki#wiki-getting-start...

I know it's pretty simple to run the examples yourself, but it would be nice if they were hosted on sigmajs.org. Great work, though. Pretty sure I'm going to try this today or tomorrow.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#25

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.

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.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#26
post #14

Looks great, but I think it would benefit a lot from more examples. :)

You can check the examples in the repository: https://github.com/jacomyal/sigma.js/wiki#wiki-getting-start...

...after installing everything. Are they online anywhere so they can be browsed more casually?

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#27
post #24

Earlier quoted context omitted.

You can check the examples in the repository: https://github.com/jacomyal/sigma.js/wiki#wiki-getting-start...

I know it's pretty simple to run the examples yourself, but it would be nice if they were hosted on sigmajs.org. Great work, though. Pretty sure I'm going to try this today or tomorrow.

I keep this in mind. We need to find an easy way to export examples formatted with the good template etc... before putting anything public, to ensure it's not too hard to update the production server when we release sigma.js.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#28
post #3

What are the strengths of this library, relative to D3? How does Sigma work differently?

On the technical side: D3 is built on svg, looks like this is built on canvas. There are a few implications to both of those as far as compatibility and performance, but shouldn't make a difference in most cases.

In general, D3 looks to be a more general purpose graphing tool (also maps, multiple charting types, and graphs), while this is more single purpose.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#29
I've used both Sigma.js and Arbor.js (http://arborjs.org/) extensively. I liked Arbor a bit better for smaller graphs, because of its flexible API and separated drawing and math components. Unfortunately Arbor seems abandoned by the author last updates were two years ago), so i guess Sigma might be a better choice right now.

Re: Sigma.js, a JavaScript library dedicated to graph drawing

#30

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.

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/tLay…

Also commercial with digraph layout functionality:

http://www.lassalle.com/

http://www.jgraph.com/

http://www.tensegrity-software.com/category/javascript-html5...

http://www.yworks.com/en/products_yfileshtml_about.html

Post reply on HN