Added basic functionality to output connections to .dot file.