Fixed function which writes to graphviz.