George R.R. Martin’s A Game of Thrones is the first novel of a popular fantasy series called A Song of Ice and Fire, which also became a popular TV show. The diagram below depicts part of the cocitation network of the books, where a link between two characters implies that they are mentioned together in several chapters. The color of the nodes of the network indicates the betweenness of the characters, which is a possible measure of how much "central" they are in the social network.
This project contains the Python codes used to scrape the data from the fan-created wiki A Wiki of Ice and Fire, and to construct the cocitation network of the characters in the books. The resulting network is also included in GML (Graph ML) format.
Python 2.7 and BeautifulSoup 4.
