Posts Tagged ‘networks’
« Older EntriesA first stab at a perl script to create Twitter friend/follow matrices
Tuesday, July 14th, 2009
Geek alert: if the title of this post isn’t a dead giveaway I should tell you — unless you’re interested in APIs and badly-put-together bits of code — this probably isn’t for you.
I’ve recently found myself using a service provided by Damon Clinkscale called DoesFollow. All it does is answer the simple question “does twitter user A follow twitter user B?” Apart from a frill which lets you reverse the order of your question (“does twitter user B follow twitter user A?”) that’s all it does. You can even interrogate it from the address bar like this: http://doesfollow.com/barackobama/mediaczar
While I was thinking about how useful a service this is, I was suddenly struck by a moment of clarity. A lot of the research I’ve been doing could be simplified by something like this.
(more…)
Tags: kludge, network analysis, networks, perl, twitter
Posted in hack, twitter | 6 Comments »
Swedish Politicians on Twitter
Sunday, February 22nd, 2009
Twixdagen does for Swedish politics what Tweetminster does for British. Hampus Brynolf (@hampusbrynolf) just sent me a link to this map he’s pulled together for their blog:
You’ll need to click through to his blog post to experience and interact with the map properly.
Hampus says that he used aiSee to generate an SVG file which could then be opened in Illustrator to “search and replace” on shapes, colors and lines (which explains the good-looking graph.)
Tags: aisee, mapping, network analysis, networks, politics, sweden
Posted in networks, twitter | 2 Comments »
Can we calculate party affiliation? (the US Congress Edition)
Friday, February 13th, 2009
Using nothing more than their public twitter relationships, is it possible to predict whether a US Congressperson is a Republican or a Democrat? The answer seems to be a guarded “yes” — our tools predict correctly 40/46 times (or around 87% of the cases.)
This post follows on from a post earlier today in which I asked, “can we calculate party affiliation?” The data set in the earlier post was gathered from the 16 members of the UK parliament who are on Twitter and the relationships between them.
Tweetcongress maintains a list of US congresspeople on Twitter. Today (February 13, 2009) there are 76 congresspeople on the service, but when I collected my data set of “who follows who” on February 3, 2009 there were only 65. Of these 65, fully 19 (29%) lived a life of noble isolation with regards the network — none of their peers linked to them, and they in turn linked to none of their peers. Removing these Miss Havishams from the data set leaves me with 46 twittering congresspeople who form a network.
Now as both social network analysis and Aesop would have it, “a man is known by the company he keeps.” What I mean by this is that given the partisan nature of politics, we should expect that Democrats will link to other Democrat twitterers more often than they link to Republican twitterers and vice versa. So that’s what NetDraw[1] , the software I’m using for most of this stuff, looks for, or more accurately:
To identify factions, NetDraw software iteratively searches for a distribution of nodes among a selected number of factions to minimise the number of connections between factions and to maximize the number of connections within factions.
Whatever. So I let NetDraw loose on the data, and here’s what it did.
I coloured the nodes red for Republican and blue for Democrats[2], labeled the nodes by party (for the sake of clarity, and for the hard-of-thinking, that’s “R” for Republican and “D” for Democrat) then counted all the nodes where label said one thing but colour another. There were six of these nodes; so NetDraw got the answer right 40⁄46 of the time (just about 87%.) This is less than the astonishing 93.75% accuracy we got with the Westminster twittering members of parliament in the previous post. Nevertheless I think we can safely say that it’s not a particularly integrated (or bipartisan) network if we can predict party affiliation with quite such success.
Here’s exactly the same map with the errant sheep re-labeled with their proper names so it’ll be easier to refer to them (if it helps, you can click on the image to view or download a larger version.)
You’ll see, I hope, that NetDraw has made a pretty good fist of the job. Where it has gone wrong on the whole is where the data clearly suggests something else. So Rep. Jared Polis for instance follows (and is followed by) no Democrat peers. Rep. Nancy Pelosi (D) and Sen. Richard Durbin (D) follow each other, but since Pelosi is followed by several Republicans and none of her other Democrat peers you can see why the algorithm has made the incorrect guess that the two of them are Republicans. Long-serving member Neil Abercrombie, as discussed in a previous post on US Congress Twitter folk, forms a bit of a bridge between the two parties, so despite his membership of the Congressional Progressive Caucus and liberal voting record, from the Twitter network point of view, his affiliation is somewhat ambiguous.
Sen. McCain follows none of his peers, and appears to inherit his incorrect attribution from Sen. Susan Collins. For the life of me, I can’t work out what makes it think that Sen. Susan Collins is a Democrat. She really isn’t, you know.
Note 1: NetDraw is a free program written by Steve Borgatti from the University of Kentucky. If you’re interested in playing around with this stuff, you’ll need to get yourself a copy.
Note 2: Actually, that’s not true. Despite a friend sharing the simple mnemonic that “‘Republicans’ and ‘red’ begin with the same letter,” I just can’t get it out of my English head that the Republicans should be blue and the Democrats red. As a result I waste precious minutes re-colouring these maps in Illustrator. It is worth pointing out that I also have problems with “left” and “right” on occasion — preferring instead the binary opposition “left” and “No! no! The other left, for God’s sake!”
Tags: congress, democrat, gop, jared polis, john mccain, mapping, nancy pelosi, Neil Abercrombie, network analysis, networks, republican, research, richard durbin, susan collins, twitter
Posted in networks, research, twitter | 1 Comment »
Why doesn’t the Tory MP have Twitter friends?
Tuesday, January 13th, 2009
This is a map of the eight Westminster MPs who are currently on Twitter, and the relationships between them. The larger the blob, the more followers they have among their peers. Apparently they’re a fairly clubbable lot, all – that is – except for Grant Shapps who (it seems) currently has no MP friends on Twitter. I’d say that it’s early days yet, but Mr Shapps appears to have been broadcasting since March 9th 2008. That’s an age in Twitter years. In that period, he has replied to 5 people out of a total of 249 tweets. Lots of people have tried to reach him.
I think that it’s nice that he’s so busy (after all, he has a constituency to run and a government to topple) but do think that if he’s going to do this, he ought to pay a little more attention.
Who (other than each other) are MPs most likely to follow? If we wanted to get a story in front of their noses, who would we most want to talk to? Here’s the list. Tweetminster is like Tweetcongress but with more tea and scones and fewer public representatives. The ubiquitous Stephen Fry is in place, of course. It wouldn’t be Twitter without him.
Tags: Andy Reed, David Lammy, Grant Shapps, Jo Swinson, Kerry McCarthy, Lynne Featherstone, mapping, mp, network analysis, networks, Tom Harris, Tom Watson, twitter, visualization
Posted in networks, twitter | 16 Comments »












