
Generate all subtrees from a tree.
generate_all_subtrees.RdThis routines generates all subtrees rooted at the root node for a particular tree.
Value
A 0-1 matrix with n rows and m columns. n is the number of sub-trees rooted at the root node of th. m is the number of nodes in this given tree. The leading column will be a 1 for all the rows.