2 - def __init__(self, vertex, depth, parent=None):
3 self.vertex = vertex
4 self.depth = depth
5 self.parent = parent
6
9
12
15
17 '''__cmp__ is supposed to return a negative number if self is
18 "smaller" than other, 0 if equal, and a positive number if
19 "greater."'''
20 return self.depth - other.depth
21