33# include <gsl/gsl_rng.h>
51 cout <<
"Testing for " <<
typeid(
Tree).name() <<
endl
57 for (
size_t i = 0; i < n; ++i)
61 auto p = tree.
insert(node);
67 typename Tree::Iterator it = tree;
72 for (
typename Tree::Iterator it(tree); it.has_curr(); it.next())
73 cout << it.get_curr()->get_key() <<
" " <<
endl;
81 cout <<
"test-tree-itor [n] [seed]" <<
endl
89 unsigned long seed = 0;
QuadTree - Hierarchical spatial index for 2D points.
Point * insert(Node *&r, const Point &p)
Recursive insert helper.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
void destroyRec(Node *&root) noexcept
Free recursively all the memory occupied by the tree root
void exit(const char *file, int line, const char *format,...)
Print a message and exit the program.
@ Tree
Basic arc (in spanning tree).
void operator()(gsl_rng *r) const
std::unique_ptr< gsl_rng, GslRngDeleter > GslRngHandle
Dynamic binary heap with node-based storage.
Dynamic set implementations based on balanced binary search trees.