Don't allow invalid edges