Пример #1
0
 bool Check(const GraphComponent<Graph> & component) const {
     if (component.v_size() <= min_vertex_number_
             || component.v_size() >= max_vertex_number_)
         return false;
     for (auto iterator = component.e_begin(); iterator != component.e_end();
             ++iterator) {
         if (this->graph().length(*iterator) <= max_length_) {
             return true;
         }
     }
     return false;
 }
Пример #2
0
 bool Check(const GraphComponent<Graph> &component) const {
     return component.v_size() >= min_vertex_number_;
 }