Return the minimum node value of the binary tree. :return: Minimum node value. :rtype: float | int **Example**: .. doctest:: >>> from binarytree import Node >>> >>> root = Node(1) >>> root.left = Node(2)
(self)
| 1373 | |
| 1374 | @property |
| 1375 | def min_node_value(self) -> NodeValue: |
| 1376 | """Return the minimum node value of the binary tree. |
| 1377 | |
| 1378 | :return: Minimum node value. |
| 1379 | :rtype: float | int |
| 1380 | |
| 1381 | **Example**: |
| 1382 | |
| 1383 | .. doctest:: |
| 1384 | |
| 1385 | >>> from binarytree import Node |
| 1386 | >>> |
| 1387 | >>> root = Node(1) |
| 1388 | >>> root.left = Node(2) |
| 1389 | >>> root.right = Node(3) |
| 1390 | >>> |
| 1391 | >>> root.min_node_value |
| 1392 | 1 |
| 1393 | """ |
| 1394 | return _get_tree_properties(self).min_node_value |
| 1395 | |
| 1396 | @property |
| 1397 | def max_node_value(self) -> NodeValue: |
nothing calls this directly
no test coverage detected