Relationship Graphs is an exciting exploration into the world of character relationships. Whether they are real or fictional characters, understanding the web of relationships between them can provide deep insights into their stories and behaviors. This project aims to visualize those relationships using interactive graphs.
The project started with a conversation with ChatGPT, a language model developed by OpenAI. The aim was to generate relationship JSON files that map the relationships between various real or fictional characters. For example, you might have a JSON file for the relationships between the characters in the "Lord of the Rings" series. The next step was to create a Jupyter notebook that uses networkx and matplotlib to visualize these relationships as graphs. This provided a proof of concept for the project.
To make the graphs more interactive and accessible, a simple website was created using D3.js. This website allows users to explore the relationships in a more hands-on way. To extend the functionality of the website, support for multiple JSON files was added. This means you can visualize multiple different relationship graphs, depending on which JSON file you choose to load.
There are endless possibilities for extending this project. You could generate more complex relationship JSON files, improve the interactivity of the website, or even integrate it with a database to store and manage your relationship data. The sky's the limit! Contributions are welcome. Feel free to submit a pull request with your improvements or open an issue if you find a bug or want to suggest a new feature.
Thanks for checking out Relationship Graphs! Enjoy exploring the complex web of relationships between your favorite characters!