forest<NodeT>::tree
is a tree extracted from forst<NodeT>::graph
.
value
is the original node extracted from a graph (forest).
child
is a vector of tree's children - shared pointers to subtrees.
Prints the tree recursively to a stream os
. l
is used for indentation level.
auto tree = fg.extract_trees();
tree->to_print(cout << "\n\n------\n"), cout << endl;