Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/g/CGAT-0.2.0/CGAT/Tree.py   CGAT(Download)
            ## if this is a leaf, do the same as tree.prune, but
            ## nod not change branch length
            prev=self.unlink(node_id)
            self.kill(node_id)
            if not prev==self.root and len(self.node(prev).succ)==1 \
        else:
            for s in succ:
                self.unlink(s)
                self.kill(s)
 

src/c/g/cgat-HEAD/CGAT/Tree.py   cgat(Download)
            # if this is a leaf, do the same as tree.prune, but
            # nod not change branch length
            prev = self.unlink(node_id)
            self.kill(node_id)
            if not prev == self.root and len(self.node(prev).succ) == 1 \
        else:
            for s in succ:
                self.unlink(s)
                self.kill(s)