SYNOPSIS

     use Tree::Create::Size qw(create_tree);
     use MyNode;
    
     my $tree = create_tree(
    
         # either specify height + num_children ... (e.g. this will create a tree
         # with 1 + 2 + 4 + 8 + 16 nodes).
         height => 4,
         num_children => 2,
    
         # ... or specify num_nodes_per_level, e.g.
         num_nodes_per_level => [100, 3000, 5000, 8000, 3000, 1000, 300],
    
         class => 'MyNode',
         # optional
         #code_create_node => sub {
         #    my ($class, $level, $parent) = @_;
         #    $class->new(...);
         #},
     );

SEE ALSO

    Role::TinyCommons::Tree::Node

    Other modules to create tree: Tree::FromStruct, Tree::FromText,
    Tree::FromTextLines, Tree::Create::Callback.

