src/newick.py
def newick(self):
        """The representation of the Node in Newick format."""
        label = self.name or ''
        if self._length:
            label += ':' + self._length
        descendants = ','.join([n.newick for n in self.descendants])
        if descendants:
            descendants = '(' + descendants + ')'
        return descendants + label
def newick(self):
        label = self.name or ''
        if self._length:
            label += ':' + self._length
        descendants = ','.join([n.newick for n in self.descendants])
        if descendants:
            descendants = '(' + descendants + ')'
        return descendants + label
def newick ( self ) : label = self . name or '' if self . _length : label += ':' + self . _length descendants = ',' . join ( [ n . newick for n in self . descendants ] ) if descendants : descendants = '(' + descendants + ')' return descendants + label
The representation of the Node in Newick format.
The representation of the Node in Newick format .