#ifndef NODE_H #define NODE_H #include using namespace std; class node { private: node* parent; int level; vector children; public: void setParent(node* p) { parent = p; }; node* getParent() { return parent; }; void setLevel(int l) { level = l; }; int getLevel() { return level; }; void setChildren(vector c) { children = c; }; void addChild(node n) { children.push_back(n); }; vector getChildren() { return children; }; node getChildrenAt(int i) { return children.at(i); }; }; #endif