twitter relationships


WIth a bit of (Python) programming it is possible to create a graph with Gephi, that shows the relationships between people in your Twitter network, e.g. “who are those that you are following, following…?”

More specifically:

I started with the list of people I follow on Twitter, some 200+ of them,  and parsed their latest 200 tweets for “mentions” for other twitter users. Each such mention creates a relationship between the ‘mentioner’ and the ‘mentioned’. 

Each of the ‘mentioners’ as well as the ‘mentioned’ become a node in the graph. As soon as there’s a relationship (by ‘mentions’) between any of the nodes, Gephi draws an edge.  Despite that I’ve filtered out most of the edges, you can see that there’s an awful lot of them in the graph above, we do indeed live in a very ‘connected world’. 

The graph above illustrates the result: there’s about 12000 nodes, and 20000 edges in there, so I had to filter the graph for a display fitting into one single image. 

It’s pretty amazing: starting with some 200+ nodes, you quickly end up with more than 10000 connections: of course, if you have, say, 100 friends, say on facebook, and each of them have 100 unique friends, that makes 10000 contacts in your second degree network… So, considering this,no wonder that the 200 + people I follow on Twitter result in 12000+ contacts…. 




About swdevperestroika

High tech industry veteran, avid hacker reluctantly transformed to mgmt consultant.
This entry was posted in Big Data, development and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s