Skittish Eclipse (foxfirefey) wrote in lj_nifty,
  • Mood: satisfied

LJMinion and Relationship Graphs

Soooo recently I slapped together a little Python library that can graph LJ relationships. It uses NetworkX which uses matplotlib. While fairly rudimentary, people have expressed enough interest in the output that I figured some of you might like to play around with it.

Basically, it makes a graph of people you've friended who have friended each other. The size of the dots is scaled to the number of mutual friends that person has. So, people with a BUNCH of friends will have a bigger circle than people with fewer.

Here is a small example from a cluster on my friendslist:



The functions in the package also provide some nice functionality for on the fly processing (ie, figuring out who do X and Y have friended in common). There's a fdata download and caching manager, and it rate limits its requests, so you don't have to be concerned about being hard on the servers when running it.

It can be found on BitBucket. I'm not too familiar with Python yet, though I have been enjoying it immensely, so anybody who Knows Better on how to do things is free to give me a guiding poke.
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 5 comments

anantj

April 10 2009, 13:32:50 UTC 5 years ago

How do I use it?

foxfirefey

April 10 2009, 16:07:52 UTC 5 years ago

At what stage are you starting from?

anantj

April 10 2009, 16:27:21 UTC 5 years ago

From the start ;)
I mean, do I have to download the code and run it off a server or is it already on a server?

foxfirefey

April 10 2009, 16:30:54 UTC 5 years ago

Ah, yes. I'll note you'll need to have Python installed and the two dependency libraries linked here:

http://bitbucket.org/foxfirefey/ljminion/wiki/Home

This is also a command line program.

You can download the source from a menu button here at the top right in a bundle:

http://bitbucket.org/foxfirefey/ljminion/src/

Then, unpack, get into the directory and you can run it with:

python LJMinion/RelationGrapher.py -h

Which will show all the options.

python LJMinion/RelationGrapher.py -a anantj

Would start the process of downloading data and then displaying your graph.

anantj

April 10 2009, 16:35:14 UTC 5 years ago

Ah okay.. Thanks. I'll try this :)