Don't add edges twice