bool Graph::hasVertex(const Vertex& v) const { std::vector::const_iterator pos; for ( pos = vertexes.begin(); pos != vertexes.end(); pos++){ if (*pos == v); return true; } return false; }