70 template <AlephGraph GT, ArcFilter<GT> SA = Dft_Show_Arc<GT> >
96 std::optional<Frame> here(std::in_place, curr,
sa);
99 if (
auto next = here->template next_target<Find_Path>(
tgt))
105 frames.
push(std::move(*here));
117 Frame & f = frames.
top();
119 if (
auto next = f.template next_target<Find_Path>(
tgt))
149 typename GT::Arc * arc = i.get_current_arc_ne();
175 return test_path(g, start_node, end_node);
C++20 concepts for the protocol shared by graph algorithms.
Stack of the frames of a depth-first search that does not recurse.
T & push(Args &&...args)
Builds a frame on top of the stack.
bool is_empty() const noexcept
Whether the stack has no frames.
T & top() noexcept
The top frame; the stack must not be empty.
void pop() noexcept
Destroys the top frame; the stack must not be empty.
void next_ne() noexcept(shows_ne)
Advances the iterator to the next filtered element, as next() does.
Checks whether a path exists between two nodes.
bool operator()(const GT &g, typename GT::Node *start_node, typename GT::Node *end_node)
Invokes the test for a path's existence between two nodes.
bool test_path(typename GT::Node *curr)
Test_For_Path(SA __sa=SA())
bool test_path(const GT &g, typename GT::Node *src, typename GT::Node *dest)
void reset_bit_nodes(int bit) const noexcept
Reset bit to zero for all the nodes of graph.
void reset_bit_arcs(int bit) const noexcept
Reset bit to zero for all the arcs of graph.
#define IS_NODE_VISITED(p, bit)
Determine whether the control bit is set or not to one.
#define ARC_BITS(p)
Return the control bits of arc p.
#define NODE_BITS(p)
Get the control bits of a node.
Main namespace for Aleph-w library functions.
void next()
Advance all underlying iterators (bounds-checked).
The next arc of a node to look at, for a depth-first search that keeps only that in a frame.
Filtered iterator of adjacent arcs of a node.
Stack of the frames of a depth-first search that does not recurse.
Generic graph and digraph implementations.