src/GRAPHGEN/forest.cpp
// Initializes leave's next trees (drag) of a tree (drag) with sequential values.
Initializes leave's next trees (drag) of a tree (drag) with sequential values.
Initializes leave ' s next trees ( drag ) of a tree ( drag ) with sequential values .
void LineForestHandler::InitNextRec(BinaryDrag<conact>::node* n) {
    if (n->isleaf()) {
        n->data.next = next_tree_.size();
        next_tree_.push_back(next_tree_.size());
    }
    else {
        InitNextRec(n->left);
        InitNextRec(n->right);
    }
}
void LineForestHandler :: InitNextRec ( BinaryDrag < conact > :: node * n ) { if ( n -> isleaf ( ) ) { n -> data . next = next_tree_ . size ( ) ; next_tree_ . push_back ( next_tree_ . size ( ) ) ; } else { InitNextRec ( n -> left ) ; InitNextRec ( n -> right ) ; } }
Initializes leave's next trees (drag) of a tree (drag) with sequential values.
Initializes leave ' s next trees ( drag ) of a tree ( drag ) with sequential values .
// Set the next tree to be used for each leaf // Setup a structure for managing equal trees