Create some utilities for dot-graphs

Migrated over from https://github.com/danking/secondary-analysis