lemon/unionfind.h
changeset 864 28c7ad6f8d91
parent 833 e20173729589
child 954 07ec2b52e53d
equal deleted inserted replaced
8:9f26216a9d81 9:c37bcf9fdd39
   737     /// \brief Clears the union-find data structure
   737     /// \brief Clears the union-find data structure
   738     ///
   738     ///
   739     /// Erase each item from the data structure.
   739     /// Erase each item from the data structure.
   740     void clear() {
   740     void clear() {
   741       items.clear();
   741       items.clear();
   742       classes.clear;
   742       classes.clear();
   743       firstClass = firstFreeClass = firstFreeItem = -1;
   743       firstClass = firstFreeClass = firstFreeItem = -1;
   744     }
   744     }
   745 
   745 
   746     /// \brief Gives back the class of the \e item.
   746     /// \brief Gives back the class of the \e item.
   747     ///
   747     ///