return graphviz string instead of printing it