45#include <lal/detail/graphs/traversal.hpp>
58template <
class graph_t>
64 ([target](
const auto&,
const node s) ->
bool {
return (s == target); });
Abstract graph Breadth-First Search traversal.
Definition: traversal.hpp:89
void set_terminate(const BFS_bool_one &f) noexcept
Set the function that controls the termination of the loop.
Definition: traversal.hpp:179
void start_at(node source) noexcept
Start traversal at a given node.
Definition: traversal.hpp:152
bool node_was_visited(node u) const noexcept
Returns whether or not node u has been visited.
Definition: traversal.hpp:242
bool is_node_reachable_from(const graph_t &g, const node source, const node target) noexcept
Is a node reachable from another?
Definition: reachability.hpp:59
Main namespace of the library.
Definition: basic_types.hpp:50
uint64_t node
Node type. See Node / Vertex page for further details.
Definition: basic_types.hpp:53