73#ifndef TPL_BINNODEGENERATORS_H
74#define TPL_BINNODEGENERATORS_H
112 if (
root == Node::NullPtr)
117 Node *n = it.get_curr_ne();
142 if (
root == Node::NullPtr)
147 Node *n = it.get_curr_ne();
172 if (
root == Node::NullPtr)
179 Node *last = Node::NullPtr;
185 while (curr != Node::NullPtr)
193 if (right != Node::NullPtr
and last != right)
Lazy sequence type (Aleph::Generator<T>) built on C++20 coroutines.
WeightedDigraph::Node Node
Stack implemented with simple dynamic array and with bounds verification.
T & top()
Return a modifiable reference to youngest element of stack (called the top)
bool is_empty() const noexcept
Return true if stack is empty.
T pop()
Extract the last more recently inserted element.
T & push(const T &data)
Push into stack a copy of data
Inorder iterator on the nodes of a binary tree.
bool has_curr() const noexcept
Return true the iterator has current node.
Preorder iterator on the nodes of a binary tree.
bool has_curr() const noexcept
Return true if iterator has current node.
Lazy, single-pass sequence of T values produced by a coroutine.
__gmp_expr< T, __gmp_binary_expr< __gmp_expr< T, U >, unsigned long int, __gmp_root_function > > root(const __gmp_expr< T, U > &expr, unsigned long int l)
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Aleph::Generator< Node * > lazy_in_order(Node *root)
Lazily traverse a binary tree in-order (left, node, right).
Aleph::Generator< Node * > lazy_post_order(Node *root)
Lazily traverse a binary tree post-order (left, right, node).
Aleph::Generator< Node * > lazy_pre_order(Node *root)
Lazily traverse a binary tree pre-order (node, left, right).
Main namespace for Aleph-w library functions.
and
Check uniqueness with explicit hash + equality functors.
Stack implementations backed by dynamic or fixed arrays.
Utility functions for binary tree operations.
Basic binary tree node definitions.