예제 #1
0
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();
  }
}
예제 #2
0
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();
  }
}