ete icon indicating copy to clipboard operation
ete copied to clipboard

tree node.delete function edge case feature request

Open tommyfuu opened this issue 4 years ago • 0 comments

Hi! In a tree that looks like the picture attached below, I would like to be able to remove the empty nodes. image

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?

tommyfuu avatar Mar 09 '21 10:03 tommyfuu