Skip to content

seohyeonlee2020/network_of_rings

Repository files navigation

Network of Rings: Character Interactions in Lord of the Rings

Network of Rings is a community detection project where I visualized the relationship between Lord of the Ring characters into a graph and determined whether their relationships can be split into isolated communities.

I assumed that two characters had 1 interaction with each other every time they are mentioned together in a sentence. I created a dictionary to track such interactions and rendered it into a graph using Python NetworkX. The following are results from Books 1-3: image Using the Louvain algorithm, I concluded that character interactions in Book 1 and Book 2 are not divided into clear-cut communities.

I was inspired by Network of Thrones (https://networkofthrones.wordpress.com/).

About

Community Detection with Python and Graph Theory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published