52 cout << ptr->get_data() <<
" ";
61 std::uniform_int_distribution<int> dist(1, 10 * n);
63 for (
int i = 0; i < n; i++)
73 unsigned int t = std::time(0);
78 n = std::stoi(
argv[1]);
81 t = std::stoi(
argv[2]);
90 cout <<
"n must be positive" <<
endl;
96 cout <<
argv[0] <<
" " << n <<
" " << t <<
endl;
107 for (i = 0; i < (
unsigned long) n; i++)
120 cout <<
testPtr->get_data() <<
" ";
126 cout <<
testPtr->get_data() <<
" ";
133 cout <<
testPtr->get_data() <<
" ";
140 for (i = 0; i < (
unsigned long) n; i++)
155 cout <<
testPtr->get_data() <<
" ";
162 for (i = 0; i < (
unsigned long) n; i++)
186 list.remove_all_and_delete();
188 printf(
"Ending .... \n\n");
bool has_curr() const noexcept
Return true if the iterator has current item.
Iterator on a list of Dnode objects.
Node belonging to a double circular linked list with header node.
T & get_data() noexcept
Return a modifiable reference to the data contained in the node.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
and
Check uniqueness with explicit hash + equality functors.
void print_list(Test *link)
void create_random_list(Test *link, int n, unsigned int seed)
Doubly linked list node with typed data.