See blog posts using this code at Welding Links.
Visit https://graph.welding-links.org to explore cross-references in an interactive web app.
# Install the package.
git clone https://github.com/skearnes/scripture-graph.git
cd scripture-graph
pip install -r requirements.txt
python setup.py install
# Download Standard Works EPUB files.
./download_epub.sh
# Generate a graph.
python scripture_graph/build_graph.py --input_pattern="*.epub" --output=scripture_graph.graphml
Generated graphs can be visualized interactively with various tools; see the recommendations from NetworkX.