Graph visualization

Distinct from #9. A way to generate a dot graph would be nice.