Skip to content

Commit a10c781

Browse files
committed
feature@tree: added breadfirst search to search elements in the tree
1 parent 2705995 commit a10c781

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/tree.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
#ifndef TREE_H
66
#define TREE_H
77
#include "graph.h"
8-
98
template <typename T>
109
class Tree {
1110
public:
1211
Tree();
1312
~Tree();
1413
void add(T parent_data, T data);
1514
T remove();
15+
Node<T> *get(T data);
1616
private:
17-
Graph<Node<T>*>* graph;
1817
Node<T>* root;
1918
};
2019

0 commit comments

Comments
 (0)