``Node.clear_child_nodes()`` simply clears the contain of child nodes
belong to a node. No other operations are performed.
As far as naming, you will need to create a new Taxon object with the
label "C" and associate it with the node. Alternatively, if you just
want a label, you can assigned "C" to the label property. But note that
this is semantically distinct from having a taxon of that label
associated with the node, which is presumably what you have in the other
leaves.
Note that no edge length adjustment will be performed (so, if the tree
was originally ultrametric, it will no longer be so after this
operation: C will maintain its original internal node height). For logic
to add this, see ``Node.remove_child(x)``. I can see a need for adding
the edge length adjustment as an option to ``clear_child_nodes()``. Will
add it to the library.
-- jeet
> --
> You received this message because you are subscribed to the Google
> Groups "DendroPy Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
dendropy-user...@googlegroups.com
> <mailto:
dendropy-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
--------------------------------------
Jeet Sukumaran
--------------------------------------
jeetsu...@gmail.com
--------------------------------------
Blog/Personal Pages:
http://jeetworks.org/
GitHub Repositories:
http://github.com/jeetsukumaran
Photographs (as stream):
http://www.flickr.com/photos/jeetsukumaran/
Photographs (by galleries):
http://www.flickr.com/photos/jeetsukumaran/sets/
--------------------------------------