Live data from Hacker News

Visualizing Reddit with my graph drawing library

yasiv.com

31–40 of 41 posts

Re: Visualizing Reddit with my graph drawing library

#31

If you click into this using IE, you are trapped by your detection page and it breaks the back function. Please consider fixing this. I know we dont like IE users, but please dont punish them!

No-no, you are right. I will fix it. Thank you for noticing!

Re: Visualizing Reddit with my graph drawing library

#32
post #12

I learned three things: 1) There are many, many more reddits than I knew about but I can't read that many. 2) That is a very nice library. I guess you have a simple spring system which compute the relative placements of the different things? 3) It is really fun to play with the springs. In fact, I will do that now.

Thank you :).

2) Yes, every node is a particle, every edge is a spring. Then you apply forces and mother nature does the rest. It always amazed me.

Re: Visualizing Reddit with my graph drawing library

#33
post #16

Hopefully this isn't on my side, but clicking on "The dark side of RATP (Paris metro) tickets" from /r/ReverseEngineering gives link address http://translate.google.com/translate?sl=fr&tl=en&#3... which resolves to a blank translate page. The url from Reddit direct is: http://translate.google.com/translate?sl=fr&tl=en&js... Looks like the handling of & on your side? Looks very cool though :)

Good catch! I didn't realize reddit encodes '&', '' when it returns json data: https://github.com/reddit/reddit/blob/master/r2/r2/controlle... which ends up in: https://github.com/reddit/reddit/blob/master/r2/r2/lib/filte...

It should be fixed now :). Thank you for pointing out!

Re: Visualizing Reddit with my graph drawing library

#34
post #10

Any easy way to set/get the exact position of nodes? rather than have it automatically generated, or overriding the automatically assigned position.

Just enumerate the nodes:

graph.forEachNode(function(node) { console.dir(node.position); });

By default nodes will not have any position assigned. Only after you run one step of layout algorithm ( https://github.com/anvaka/VivaGraphJS/blob/master/src/Layout... ) they get their positions.

Re: Visualizing Reddit with my graph drawing library

#36
post #8

Very nice. Thanks for including links to other graph libraries in your README on github. I have a "weekend" project coming up that requires this style of graph, so I'll be sure to try your library out.

Sure. Graph Dracula's site ( http://www.graphdracula.net/ ) has even more references to the similar projects. Could also be interesting :)

Re: Visualizing Reddit with my graph drawing library

#37

Very nice work! I wonder if it's possible to highlight the reddit mascot with css according to the :visited pseudo-class if you put an a-element around it (or some other way)? Showing "recent activity" for sub-reddits in a subtle way would be awesome, too, can't click on everything :) Small detail: if the search term has a white-space around, no results are found.

Very nice suggestions! Thank you, kaiwetzel.

I will look into :visited and fix the white spaces. And what is a "recent activity"?

Re: Visualizing Reddit with my graph drawing library

#39
post #13

Earlier quoted context omitted.

What "things" would you link together in twitter and facebook?

I'm guessing how friends/followers are connected. Whole 6 degrees of separation idea

This is interesting and challenging problem. Interesting because it always leads to unexpected discoveries. Challenging because it's hard to show large clusters of friends in accessible manner.

LinkedIn has InMaps app ( http://inmaps.linkedinlabs.com/ ) which shows your network. It's cool, but really hard to read it...

Re: Visualizing Reddit with my graph drawing library

#40

useful software if you happen to often work with graphs : http://gephi.org . The ForceAtlas V2 algorithm which is an optimization of Barnes-Hut one is pretty fast !

Thank you for the reference. I read they are using Barnes-Hut optimization for larger graphs. Do you know what kind of optimization?
Post reply on HN