Quick visual inspection
Before moving on to more cleaning, let’s do a quick visual inspection of the network. We will reuse the draw_graph
function we have been using throughout this book:
draw_graph(G, show_names=True, node_size=5, edge_width=1)
This outputs the following network:
Figure 6.2 – Quick visual inspection network
OK, what do we see? I can see that there is one large cluster of connected entities. This is the primary component of the Alice in Wonderland network.
What else do we see? Alice is the most central node in the primary component. That makes sense, as she is the main character in the story. Thinking about the main characters, I see many names that I know, such as Dormouse, Cheshire Cat, and White Rabbit. What is interesting to me, though, is that not only are they shown but I can also begin to see which characters are most important to the story based on the number of entities connected to them. However, I also...