ete
ete copied to clipboard
tree node.delete function edge case feature request
Hi! In a tree that looks like the picture attached below, I would like to be able to remove the empty nodes.

Right now, in the tree node delete function, there are two options: (1) when prevent_nondicotomic=False, the nodes will not be removed and the tree would be the same (2) when prevent_nondicotomic=True, many of the currently present nodes will be deleted.
Is there a way to incorporate a feature that removes nodes of specific criteria without removing nodes with certain values?