def chooseChild(self, a):
        """ Choose where to go according to the value a """
        idx = self.__getlink(a)
        if 0 <= idx < self.refcnt: 
            return self.links[idx]
 Choose where to go according to the value a 
recipes/Python/577898_23_Tree/recipe-577898.py