src/newick.py
def remove_internal_names(self):
        """
        Set the name of all non-leaf nodes in the subtree to None.
        """
        self.visit(lambda n: setattr(n, 'name', None), lambda n: not n.is_leaf)
def remove_internal_names(self):
        self.visit(lambda n: setattr(n, 'name', None), lambda n: not n.is_leaf)
def remove_internal_names ( self ) : self . visit ( lambda n : setattr ( n , 'name' , None ) , lambda n : not n . is_leaf )
Set the name of all non-leaf nodes in the subtree to None.
Set the name of all non - leaf nodes in the subtree to None .