Grouping Friends

November 27th, 2008


Last night I start playing with Processing.  I had previously done a little work on a facebook app to gather what friends of mine were also friends.  I had never taken that data to any sort of useful state, so I decided it was time to try and graph those connections.  I decided to try and use Processing which turned out to be nice in some respects, as it nicely animates the spacing for me.  It also gave me some issues which may just be lack of knowledge, such as I ran into a problem with file size as I was attempting to write all my data into one file.  I then tried to use the loadStrings function which I couldn’t get to load data out of the data directory, so I had to fetch it over the web (well from the web server on my laptop).  After that was all worked out I had to draw everything, which went pretty smoothly but I had to play with my gravity metrics to pull people together that are linked and push people apart that are not.  It’s not perfect but I can see distinct groups (Work, Camp, College, High School).  The way I wrote this I place everyone on the screen in a random spot, and then adjust their position based on the gravity, until sum of the error percent stops decreasing.

Update: here is a new version that seperates a little better and adds blue

Filed under Data, Processing. - Trackback

3 Responses to “Grouping Friends”

Mary Says:

November 27th, 2008 at 7:50 pm

you have a friend named Max Satisfaction?

Happy Thanksgiving, by the way. What are you up to? We have turkey in the oven now and a few people coming over later.

admin Says:

November 28th, 2008 at 2:04 am

@Mary indeed I do have a friend of that name.

marisa Says:

November 28th, 2008 at 4:03 pm

I am buried under like 50 others. I think we know too many of the same people :)

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>