toGraphviz function

Convert a DAG into graphviz format