void OptimizableGraph::discardTop(HyperGraph::VertexSet& vset) { for (HyperGraph::VertexSet::iterator it=vset.begin(); it!=vset.end(); ++it) { OptimizableGraph::Vertex* v = static_cast<OptimizableGraph::Vertex*>(*it); v->discardTop(); } }
void OptimizableGraph::discardTop() { for (OptimizableGraph::VertexIDMap::iterator it = _vertices.begin(); it != _vertices.end(); it++) { OptimizableGraph::Vertex* v = static_cast<OptimizableGraph::Vertex*>(it->second); v->discardTop(); } }