Senate Voting RelationshipsDecember 8, 2013
“Though America’s political polarisation has become a fact of life, it has never been seen so graphically: as a diseased brain, with few neural pathways between the two hemispheres.”
—The Economist, December 7 issue
Using voting data from the 101st Congress through the 113th Congress, I created a series of network visualizations like the one below showing voting relationships between US senators.
This image and twenty-four others like it can be found in this album. I used these visualizations to create an animation which appears to illustrate a widening gap between Democratic and Republican senators.
I made the graphs using roll call data from GovTrack, scraped and built into NetworkX graphs with the code in this Gist; I then used Gephi to render the NetworkX graphs. In each graph, edge (u, v) is assigned weight equal to the number of times Senator u and Senator v voted the same way, either Yea or Nay. For the sake of clarity, I filtered out edges with weight less than 100; these lighter edges generally indicate agreement on procedural votes.
The clusters you see in each graph are the result of using Gephi’s Force Atlas layout, which applies a force-directed algorithm to the graph and causes those nodes connected by heavier edges to be pulled together more tightly. A nice side-effect of using this physics-based model is that more bipartisan senators are pushed closer to the center of the graph, near the party divide, while less bipartisan senators are repelled outwards toward the perimeter of the graph, furthest from the party divide.Was this helpful? Buy me a coffee!