diff -r 30c77d1c0cba -r 5b926cc36a4b lemon/unionfind.h --- a/lemon/unionfind.h Thu Oct 15 21:04:50 2009 +0200 +++ b/lemon/unionfind.h Tue Mar 16 21:12:10 2010 +0100 @@ -739,7 +739,7 @@ /// Erase each item from the data structure. void clear() { items.clear(); - classes.clear; + classes.clear(); firstClass = firstFreeClass = firstFreeItem = -1; } @@ -1288,6 +1288,15 @@ : index(_index), first_class(-1), first_free_class(-1), first_free_node(-1) {} + /// \brief Clears the union-find data structure + /// + /// Erase each item from the data structure. + void clear() { + nodes.clear(); + classes.clear(); + first_free_node = first_free_class = first_class = -1; + } + /// \brief Insert a new node into a new component. /// /// Insert a new node into a new component.