Analyzing To Be Or Not To Be, a choose-your-own-path Hamlet by Ryan North
- Python 93.6%
- Makefile 4.5%
- Shell 1.9%
Mostly for the sake of the reader - unfortunately styling the svg from CSS looks difficult, especially working with the Graphviz output (which is hard to even add classes to). |
||
|---|---|---|
| .gitignore | ||
| analysis.py | ||
| graph.py | ||
| Makefile | ||
| package.sh | ||
| README.md | ||
| TODO.md | ||
Graphing To Be Or Not To Be
Usage: place tbontb.epub in the root directory and then run make to generate tbontb.svg, which you can open in a browser. The SVG includes a relative link to each page from every graph node, as well as inline ending images.
Includes some basic graph analysis in the script analysis.py. Running make also runs this script to generate stats.txt with some basic graph properties.