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%
Find a file
Tej Chajed 1c344c25e6 Give the svg a more pleasant background
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).
2016-04-09 18:20:43 -04:00
.gitignore Emit stats as valid YAML 2016-03-13 18:25:04 -04:00
analysis.py Add statistics about non-implicit nodes 2016-03-16 16:47:16 -04:00
graph.py Give the svg a more pleasant background 2016-04-09 18:20:43 -04:00
Makefile Emit stats as valid YAML 2016-03-13 18:25:04 -04:00
package.sh Package generated files into one directory 2016-03-04 18:26:19 -05:00
README.md Mention stats in README 2016-03-05 11:58:11 -05:00
TODO.md Extract original Shakespeare path 2016-03-06 12:36:29 -05:00

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.