-// for (auto n: this->nodes_)
-// if (n != this->root_)
-// delete n;
-// for (auto n: this->dnodes_)
-// if (n != this->root_ && n != this->goal_)
-// delete n;
-// for (auto s: this->samples_)
-// if (s != this->goal_)
-// delete s;
-// for (auto edges: this->rlog_)
-// for (auto e: edges)
-// delete e;
-// delete this->root_;
-// delete this->goal_;
+ for (auto n: this->nodes_)
+ if (n != this->root_)
+ delete n;
+ for (auto n: this->dnodes_)
+ if (n != this->root_ && n != this->goal_)
+ delete n;
+ for (auto s: this->samples_)
+ if (s != this->goal_)
+ delete s;
+ for (auto edges: this->rlog_)
+ for (auto e: edges)
+ delete e;
+ delete this->root_;
+ delete this->goal_;