All pastes #951967 Raw Edit

Anonymous

public text v1 · immutable
#951967 ·published 2008-03-21 20:19 UTC
rendered paste body
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;
}