News for hackers. Stuff that matters.
Re:Springy: A force-directed graph layout algorithm in JavaS... by mkesper on Thursday June 12, 2014 @03:13AM (#7882184)
I'd find a comparison against other libs interesting. There's a lot out there already: http://stackoverflow.com/questions/7034/graph-visualization-...
Re:Springy: A force-directed graph layout algorithm in JavaS... by simulate on Thursday June 12, 2014 @05:55PM (#7886225)
That's a good list on SO from Johann Strathaus. Thanks for the link. It's unfortunate that after being open for 5 years, having hundreds of up-votes, and 30 answers with several good responses, the question was recently closed on StackOverflow as being off-topic.
Re:Springy: A force-directed graph layout algorithm in JavaS... by pathikrit on Thursday June 12, 2014 @07:09PM (#7886556)
Re:Springy: A force-directed graph layout algorithm in JavaS... by polskibus on Thursday June 12, 2014 @03:34AM (#7882221)
How is it different from D3's force layout + DOM manipulation? Looks very, very similar to me.
Re:Springy: A force-directed graph layout algorithm in JavaS... by jschulenklopper on Thursday June 12, 2014 @05:33AM (#7882535)
Indeed. See http://bl.ocks.org/mbostock/4062045 for Mike Bostock's example of a simple force-directed graph including the D3.js code.

(BTW, see http://bl.ocks.org/mbostock for an impressive collection of visualizations made with D3.js. Impressive both in terms of size of the collection, quality of the code and clarity of the visualizations.)

Re:Springy: A force-directed graph layout algorithm in JavaS... by akx on Thursday June 12, 2014 @05:48AM (#7882560)
Well, it (slightly) predates D3, for what it's worth:

https://github.com/dhotson/springy/commits/master?page=4 https://github.com/mbostock/d3/commits/master?page=91

If all you need is spring layout without the rest of D3, Springy might be a better fit.

Re:Springy: A force-directed graph layout algorithm in JavaS... by verroq on Thursday June 12, 2014 @04:44AM (#7882405)
It's an inferior subset of D3, however HN will upvote anything with JS in the title.
Re:Springy: A force-directed graph layout algorithm in JavaS... by zo1 on Thursday June 12, 2014 @05:27AM (#7882518)
Like I just upvoted your comment? Because it had JS in the body... Just kidding, I agree completely with you. It's currently very "in vogue" to promote anything remotely related to JS or Node. I always say, right tool for the job, and if that happens to be JS/Node, great. However, sometimes it feels like these JS pushers have JS as their proverbial hammer, and every single problem they encounter is a nail to be hammered (with JS).
Re:Springy: A force-directed graph layout algorithm in JavaS... by Windwaker on Thursday June 12, 2014 @09:08AM (#7883122)
Interesting. I did notice that every once and a while some of the text comes to rest outside or partially outside the canvas.
Re:Springy: A force-directed graph layout algorithm in JavaS... by dhotson on Friday June 13, 2014 @09:19AM (#7888638)
Hey guys, original author here. Thanks for taking a look. Questions welcome. :)
Re:Springy: A force-directed graph layout algorithm in JavaS... by PeterSmit on Thursday June 12, 2014 @10:01AM (#7883418)
This has been around for a while. I remember using it in a project 3 years ago.
Re:Springy: A force-directed graph layout algorithm in JavaS... by cfontes on Thursday June 12, 2014 @04:33AM (#7882374)
I am not the author.

Just found it interesting.

Re:Springy: A force-directed graph layout algorithm in JavaS... by phy6 on Thursday June 12, 2014 @09:02AM (#7883090)
Fair enough. Sometimes it's nice to see other people's implementation of the same thing, just for comparison. It's similar to learning how to say things with other words.
Re:Springy: A force-directed graph layout algorithm in JavaS... by dang on Thursday June 12, 2014 @02:38AM (#7882090)
Url changed from https://github.com/dhotson/springy since the website links to the source code and is more informative (at least in the short run).