lemon/graph_utils.h
changeset 1716 d8c28868f074
parent 1704 467d7927a901
child 1720 578d8b2b76c6
equal deleted inserted replaced
23:7b4eca91f158 24:2f315f21c258
  1398     static int size(int s) {
  1398     static int size(int s) {
  1399       return s * s;
  1399       return s * s;
  1400     }
  1400     }
  1401 
  1401 
  1402     void add(const Node& node) {
  1402     void add(const Node& node) {
  1403       if (size(graph.id(node) + 1) > values.size()) {
  1403       if (size(graph.id(node) + 1) >= (int)values.size()) {
  1404 	values.resize(size(graph.id(node) + 1));	
  1404 	values.resize(size(graph.id(node) + 1));	
  1405       }
  1405       }
  1406     }
  1406     }
  1407 
  1407 
  1408     void erase(const Node&) {}
  1408     void erase(const Node&) {}