def __cmp__(self, other):
     if self._prob != other.prob():
         return -1
     return TreeEdge.__cmp__(self, other)