Iterator<VertexType> i = vertexList.iterator(); while (i.hasNext()) { VertexType existingVertex = i.next();
for (VertexType existingVertex : vertexList) {
	public boolean containsVertex(VertexType v) {		Iterator<VertexType> i = vertexList.iterator();		while (i.hasNext()) {			VertexType existingVertex = i.next();			if (v == existingVertex)				return true;		}		return false;	}