Worked exercises:
I drew the graphs on these pages with Graphviz, I used vim-literate-markdown’s tangling functionality to quickly extract graph code to separate files.
You can install Graphviz and run e.g. dot < graph.dot -Tsvg > graph.svg
(also accepts input files as parameters).
Or you can install PlantUML, surround the code with @startdot...@enddot
, and run plantuml -p -Tsvg < graph.puml > graph.svg
.