Commit 6604c615 authored by ehebrard's avatar ehebrard
Browse files

the tree swipe procedure on clear does not care of the order

parent 5becafeb
......@@ -660,17 +660,7 @@ template <class E_t> int Wood<E_t>::copyNode(const int node) {
}
template <class E_t> void Wood<E_t>::freeNode(const int node) {
if (node > 1) {
// cout << "free " << node << endl;
if(node >= available.size() or available.contain(node)) {
cout << "REMOVE " << node << " FROM " << available << endl;
}
assert(node < available.size() and not available.contain(node));
// parent[node] = -1
if (node > 1 and not available.contain(node)) {
available.add(node);
for (auto i{0}; i < 2; ++i)
if (child[i][node] >= 2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment