How to analyze Logseq Graph (that was exported as a JSON file) in Python

I am working on analyzing knowledge graphs using a programming language.

How can I export the graph from Logseq to a CSV file so that I can see the relationship between each node in the graph?

I have exported it to JSON currently, but I am unable to see the connection between a page name and another page name.

Thank you.