NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.This notebook goes over how to do question answering over a graph data structure.
Setting up
We have to install a Python package.Create the graph
In this section, we construct an example graph. At the moment, this works best for small pieces of text.Querying the graph
We can now use the graph QA chain to ask question of the graphSave the graph
We can also save and load the graph.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.