Removing repeated edges from the grafviz function