To graph the characters’ relationships, we first need to calculate the strengths of those relationships. Here’s the code.
We can display the characters’ relationship network using D3. Here’s the code.
And finally, here are the resulting graphs after I took some screenshots and added labels for some of the characters: