News for hackers. Stuff that matters.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by frewsxcv on Tuesday February 04, 2014 @01:06PM (#7179143)
I started a project a couple months ago to create a 3D graph library similar to Sigma.js using ThreeJS (WebGL). You can check it out here

https://github.com/frewsxcv/graphosaurus

And a really crappy demo (give it a few seconds to load):

http://vps.rwell.org/index-eve.html

Re:Sigma.js, a JavaScript library dedicated to graph drawing by elwell on Tuesday February 04, 2014 @01:40PM (#7179394)
That's pretty cool; judging by the 'crappy demo' it has potential but would need some important features to be useful, such as: labels, improvements regarding the visual appearance & clarity, and node selection to isolate connections.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by frewsxcv on Tuesday February 04, 2014 @01:56PM (#7179506)
Yeah, the two things I'm working on next are labels and click/hover events. Let me know if you have any other ideas
Re:Sigma.js, a JavaScript library dedicated to graph drawing by myhf on Wednesday February 05, 2014 @01:07AM (#7182182)
Ah, the security levels of EVE Online systems. I'd recognize that data anywhere.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by haberman on Tuesday February 04, 2014 @02:04PM (#7179565)
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.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by simonsarris on Tuesday February 04, 2014 @02:46PM (#7179824)
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 by davidjgraph on Tuesday February 04, 2014 @05:56PM (#7180824)
Re:Sigma.js, a JavaScript library dedicated to graph drawing by davidjgraph on Tuesday February 04, 2014 @02:23PM (#7179687)
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 by jweir on Tuesday February 04, 2014 @02:14PM (#7179637)
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 by beat on Tuesday February 04, 2014 @11:38AM (#7178489)
What are the strengths of this library, relative to D3? How does Sigma work differently?
Re:Sigma.js, a JavaScript library dedicated to graph drawing by cwbrandsma on Tuesday February 04, 2014 @04:32PM (#7180368)
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 by auvrw on Wednesday February 05, 2014 @12:26AM (#7182061)
upvote, because this is the correct answer to the question "how does this work differently from d3," as opposed to the question, "what are the advantages/disadvantages of using this over d3."

a quick f12-for-firebug reveals that sigma indeed uses the canvas element. i haven't actually used the library, but it appears ( https://github.com/jacomyal/sigma.js/blob/master/package.jso... ) to in fact be built directly on canvas, which is impressive in some sense but probably does duplicate a lot of work that could be avoided by using a generic-canvas-drawing-but-not-specifically-graph-drawing library.

d3 stands for "data-driven-documents" and is actually not specific to graphs. at the core, it's about (as the expanded name suggests) connecting html documents to javascript data structures. of course, lots of libraries -- angular, etc. -- may be described in such general terms, so more specifically, d3 is useful when you have both a lot of data (or a lot of structure to your data) and a lot of html elements to layout according to that data.

it just so happens that <svg> is now actually a tag in html ( : / ? i mean that, the advances in the browsers themselves, was news to me, when i looked at d3 for the first time), so yeah, d3 is most commonly used when the elements you want to lay out are a bunch of svg tags.

anyway, i really like d3 (and probably would like three.js, for that matter, if i took the time to toy around with it) b/c i think it does one fairly general thing, does it well, and has practical applications.

Re:Sigma.js, a JavaScript library dedicated to graph drawing by me_bx on Tuesday February 04, 2014 @12:46PM (#7179005)
to add up on the other replies: sigma.js is plug-and-play, very easy to draw a force-directed graph with nice built-in features. d3.js requires more work to get to the same result.

Advantage of d3.js is that it is easier to customize the display you want.

other difference: sigma.js implements "force atlas 2 " algorithm - like the one found in Gephi, which may be more suitable for some graphs (when you want to highlight community structures)

Re:Sigma.js, a JavaScript library dedicated to graph drawing by nrub on Tuesday February 04, 2014 @12:31PM (#7178886)
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.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by nawitus on Tuesday February 04, 2014 @02:43PM (#7179807)
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 by tptacek on Tuesday February 04, 2014 @12:01PM (#7178640)
For one thing, Sigma appears to have an ortho layout; D3 only does force-directed, right?
Re:Sigma.js, a JavaScript library dedicated to graph drawing by jacomyal on Tuesday February 04, 2014 @12:08PM (#7178696)
Actually, as with d3, you can develop your own network visualization layouts.

The main difference is that sigma only deals with graphs drawing, so it deals without effort with drag and drop (mouse or touch), scaling the graph to the screen, smooth zooming (with mousewheel or pinch)...

Re:Sigma.js, a JavaScript library dedicated to graph drawing by tptacek on Tuesday February 04, 2014 @12:22PM (#7178808)
Aren't the layouts the Hard part?
Re:Sigma.js, a JavaScript library dedicated to graph drawing by _delirium on Tuesday February 04, 2014 @12:43PM (#7178979)
It depends on where your data's coming from, but I tend to avoid doing layout in JS, and instead pre-lay-out the data using Gephi or graphviz (possibly in a cron job if the data changes), loading the hardcoded initial layout in JS and using sigma.js only for display/interaction. In the non-cron case, also lets me tweak the layout a bit through trial and error or trying out different algorithms, to get something I like. Obviously doesn't work for every possible usage, though.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by jacomyal on Tuesday February 04, 2014 @12:41PM (#7178967)
It is one hard part. But displaying thousands of elements in a web page is another one.

Also, sigma does provide in a plugin a force-directed layout, ForceAtlas2, initially developed for Gephi.

Re:Sigma.js, a JavaScript library dedicated to graph drawing by tmad4000 on Tuesday February 04, 2014 @10:55PM (#7181800)
Hello all, I'm a student at MIT working on a project building a general-case platform to create and explore graphs called WikiNets http://wikinets.co.uk/ with the goal of enabling half-formed ideas separated across different people's heads to come together (e.g. making a custom platform for http://hackathonprojects.tk/). Anyone want to work on this with us? I would love to find others who think on this same wavelength and I lament that (ironically) there's not yet a way online for people to find others with synergistic ideas! Feel free to poke me at [email protected] Incidentally, we're currently using D3, but welcome suggestions as well!
Re:Sigma.js, a JavaScript library dedicated to graph drawing by jvalencia on Tuesday February 04, 2014 @12:52PM (#7179055)
On FF nightly in linux (lubuntu - no flash), none of the graphs work.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by huskyr on Tuesday February 04, 2014 @04:53PM (#7180507)
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 by Hyperized on Wednesday February 05, 2014 @03:24AM (#7182562)
Want to get started with PHP and GEXF to create dynamic input files for sigma.js? http://stackoverflow.com/a/14719375 If there is enough interest, I will create a GEXF lib for PHP.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by nkozyra on Wednesday February 05, 2014 @11:01AM (#7184474)
We tested this with some Super Bowl social data we collected as part of a project.

First: looks really good, very easy to integrate.

Next: Am I missing it, or is there no way to visually represent the edge strength? Everything appears to be a 1px connection no matter how strong the edge.

Re:Sigma.js, a JavaScript library dedicated to graph drawing by jacomyal on Wednesday February 05, 2014 @11:49AM (#7184814)
That is weird, indeed. The thickness of the edges should be related to their "size" value.

After that, check how sigma rescales the nodes and edges in the related wiki page:

https://github.com/jacomyal/sigma.js/wiki/Settings#wiki-resc...

Re:Sigma.js, a JavaScript library dedicated to graph drawing by kmfrk on Tuesday February 04, 2014 @01:07PM (#7179155)
Looks great, but I think it would benefit a lot from more examples. :)
Re:Sigma.js, a JavaScript library dedicated to graph drawing by jacomyal on Tuesday February 04, 2014 @01:12PM (#7179184)
You can check the examples in the repository: https://github.com/jacomyal/sigma.js/wiki#wiki-getting-start...
Re:Sigma.js, a JavaScript library dedicated to graph drawing by dcre on Tuesday February 04, 2014 @02:45PM (#7179818)
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 by jacomyal on Tuesday February 04, 2014 @04:09PM (#7180269)
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 by nkoren on Tuesday February 04, 2014 @02:46PM (#7179826)
...after installing everything. Are they online anywhere so they can be browsed more casually?
Re:Sigma.js, a JavaScript library dedicated to graph drawing by bicknergseng on Tuesday February 04, 2014 @01:54PM (#7179491)
I'm kinda surprised there haven't been more WebGL based graphing libraries popping up. I'd love to have one to replace the graphing I do in D3.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by anaphor on Tuesday February 04, 2014 @09:50PM (#7181614)
Most JS graph libraries I've found have either been really hard to use or buggy. Hope this is much better, seems to sound like it.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by ests on Tuesday February 04, 2014 @06:16PM (#7180901)
Looks very nice!
Re:Sigma.js, a JavaScript library dedicated to graph drawing by pilopio on Tuesday February 04, 2014 @12:03PM (#7178651)
only god nodes.
Re:Sigma.js, a JavaScript library dedicated to graph drawing by nikokolu on Tuesday February 04, 2014 @11:35AM (#7178471)
nice work !