Anonymous
public text v1 · immutablebool Graph::hasVertex(const Vertex& v) const
{
std::vector<Vertex>::const_iterator pos;
for ( pos = vertexes.begin(); pos != vertexes.end(); pos++){
if (*pos == v);
return true;
}
return false;
}bool Graph::hasVertex(const Vertex& v) const
{
std::vector<Vertex>::const_iterator pos;
for ( pos = vertexes.begin(); pos != vertexes.end(); pos++){
if (*pos == v);
return true;
}
return false;
}