Left child ID of a node.
(self, node_id: int)
| 94 | return self.nodes[node_id].parent |
| 95 | |
| 96 | def left_child(self, node_id: int) -> int: |
| 97 | """Left child ID of a node.""" |
| 98 | return self.nodes[node_id].left |
| 99 | |
| 100 | def right_child(self, node_id: int) -> int: |
| 101 | """Right child ID of a node.""" |