minor fix to update graphviz func