Split graph folder into graph and tree

This commit is contained in:
stefiosif
2022-07-10 15:32:13 +03:00
parent 3fa6935b84
commit b9cd1a1cbd
11 changed files with 176 additions and 25 deletions

View File

@@ -0,0 +1,20 @@
#ifndef DIRECTED_ROOTED_TREE_H_
#define DIRECTED_ROOTED_TREE_H_
#include "tree.h"
using namespace graph;
namespace tree {
template<typename T>
class DirectedRootedTree : public Tree<T> {
public:
DirectedRootedTree() = default;
DirectedRootedTree(std::map<T, std::set<T>> G)
: Tree<T>::Tree(G) {}
};
} // namespace tree
#endif