def __init__(id=0, left=None, right=None, value=None, parent=None, next=None): TreeNode.__init__(self, id, left, right, value, parent) self.next = next # next right child on the same level
def __init__(self, key, NIL): Node.__init__(self, key, NIL) self.color = BLACK