Porting Kieran Healy's (@kjhealy) Paul Revere data exploration to Python, using Pandas and NetworkX.
Tidies up people and group names, and calculates both betweenness and eigenvector centrality for the people
graph:
Betweenness centrality:
- Paul Revere: 0.115
- Thomas Urann: 0.0694
- Joseph Warren: 0.0552
- Samuel Peck: 0.0373
- John Hoffins: 0.0275
- William Cooper: 0.0275
- Nathaniel Barber: 0.0275
- Henry Bass: 0.0267
- Caleb Davis: 0.0267
- Thomas Chase: 0.0267
Eigenvector centrality:
- Paul Revere: 0.176
- Nathaniel Barber: 0.175
- John Hoffins: 0.175
- William Cooper: 0.175
- Henry Bass: 0.166
- Caleb Hopkins: 0.166
- William Greenleaf: 0.166
- Caleb Davis: 0.166
- Thomas Chase: 0.166
- Edward Proctor: 0.157
The notebook's available to be viewed online here
Output to D3? Maybe use Bokeh / Vincent? Ceiling cat cannot say.
A little network analysis example. The data come from an appendix to David Hackett Fischer's Paul Revere's Ride (Oxford University Press, 1995). Put up to accompany this blog post: http://kieranhealy.org/blog/archives/2013/06/09/using-metadata-to-find-paul-revere