45#include <lal/detail/graphs/traversal.hpp>
58template <
class graph_t>
60(
const graph_t& g,
const node source,
const node target)
65 ([target](
const auto&,
const node s) ->
bool {
return (s == target); });
67 return bfs.node_was_visited(target);
Abstract graph Breadth-First Search traversal.
Definition traversal.hpp:89
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:60
Main namespace of the library.
Definition basic_types.hpp:48
uint64_t node
Node type. See Node / Vertex page for further details.
Definition basic_types.hpp:51