don't add duplicate edges to a graph