#ifndef BREADTH_FIRST_TREE_H_ #define BREADTH_FIRST_TREE_H_ #include "digraph.h" namespace graph { template class BreadthFirstTree : public Digraph { public: BreadthFirstTree() = default; BreadthFirstTree(std::map> G, T root) : BreadthFirstTree(Digraph(G), root) {} BreadthFirstTree(Digraph G, T root); T root; }; template BreadthFirstTree::BreadthFirstTree(Digraph G, T root) { this->adjMatrix = algo::BreadthFirstSearch(G.adjMatrix).execute(root); } } // namespace graph #endif