Esempio n. 1
0
 def __init__(self, key, value, parent = None, left = None, right = None, depth = 0):
   BSNode.__init__(self, key, value, parent, left, right)
   self.depth = depth
Esempio n. 2
0
 def __init__(self, key, value, parent = None, left = None, right = None, color = 'red'):
   BSNode.__init__(self, key, value, parent, left, right)
   self.color = color