COIN-OR::LEMON - Graph Library

Changeset 2427:d40c31b08d6f in lemon-0.x


Ignore:
Timestamp:
04/20/07 16:06:08 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3263
Message:

Clear for unionfinds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/unionfind.h

    r2391 r2427  
    102102    }
    103103
     104    /// \brief Clears the union-find data structure
     105    ///
     106    /// Erase each item from the data structure.
     107    void clear() {
     108      items.clear();
     109    }
     110
    104111    /// \brief Inserts a new element into the structure.
    105112    ///
     
    284291
    285292      items.push_back(t);
     293    }
     294
     295    /// \brief Clears the union-find data structure
     296    ///
     297    /// Erase each item from the data structure.
     298    void clear() {
     299      items.clear();
     300      firstClass = -1;
    286301    }
    287302
Note: See TracChangeset for help on using the changeset viewer.