示例#1
0
文件: data.py 项目: Antiger2005/mst
 def __cmp__(self, other):
     ret = AbstractResult.__cmp__(self, other)
     if ret != 0:
         return ret
     else:
         return compare_float(self.mst_weight, other.mst_weight)
示例#2
0
 def __cmp__(self, other):
     ret = AbstractResult.__cmp__(self, other)
     if ret != 0:
         return ret
     else:
         return compare_float(self.mst_weight, other.mst_weight)
示例#3
0
文件: data.py 项目: Antiger2005/mst
 def __cmp__(self, other):
     ret = AbstractResult.__cmp__(self, other)
     if ret != 0:
         return ret
     else:
         return compare_float(self.time_sec, other.time_sec)
示例#4
0
 def __cmp__(self, other):
     ret = AbstractResult.__cmp__(self, other)
     if ret != 0:
         return ret
     else:
         return compare_float(self.time_sec, other.time_sec)