class Node: def __init__(self) -> None: self.left = None self.right = None wurzel = Node() blattlinks = Node() blattrechts = Node() wurzel.links = blattlinks wurzel.rechts = blattrechts class Node: def _init_(self, data) -> None: self.left = None self.right = None self.leftweight = 0 self.rightweight = 0 self.data = data nodes[] nodes[0] = Node() nodes[1] = Node() nodes[2] = Node() nodes[0].left = nodes[1] nodes[0].right = nodes[2] nodes[0].leftweight = 8 nodes[0].rightweight = 5