public void addAdjacentVertex(Vertex adjacentVertex) { if (!adjacentVertices.Contains(adjacentVertex)) { adjacentVertices.Add(adjacentVertex); } }