changed Vertex::addNeighbor to be incapable of creating self-loops