

Originally, these served for interactions that were extracted from character names (i.e. An additional color for edges with unspecified parental origin are introduced as well. These edges are marked by being dotted instead of solid. Here, I have the type of interaction (mother, father or spouse), the color and line-type I want to assign to each edge.īecause the books and the TV series differ slightly, I have introduced edges that are only supported or hinted at by the TV series and are not part of the original narrative in the books. An edge-table contains source and target nodes in the first two columns and optionally additional columns with edge attributes. To do so, I first create the graph from the edge- and node-table. I am using igraph to plot the initial network. You can find the full code for how I generated the network on my Github page.


Because most family relationships were missing in that dataset, I added the missing information in part by hand (based on A Wiki of Ice and Fire) and by scraping information from the Game of Thrones wiki. The basis for this network is Kaggle’s Game of Throne dataset (character-deaths.csv). These answers can give us a lot of information about the patterns of how people interact.
