Use backend.graphviz.writeGraphviz function to write.