Skip to content

num::structures::dfs

Defined in header <structures/algorithms/traversal.hpp>

template <typename Weight, std::integral Index, std::integral Source = Index>
array<Index> dfs(const graph<Weight, Index> &G, Source source_in);

Depth-first search traversal order starting from source.