Print graph to dot file