23#include <cusp/detail/config.h>
24#include <cusp/detail/execution_policy.h>
38template <
typename DerivedPolicy,
43 const typename MatrixType::index_type src,
45 const bool mark_levels =
true);
93template<
typename MatrixType,
96 const typename MatrixType::index_type src,
98 const bool mark_levels =
true);
105#include <cusp/graph/detail/breadth_first_search.inl>
void breadth_first_search(const MatrixType &G, const typename MatrixType::index_type src, ArrayType &labels, const bool mark_levels=true)
Performs a Breadth-first traversal of a graph starting from a given source vertex.