Add undirected graph function to graphviz library