MCPcopy Index your code
hub / github.com/joowani/binarytree / min_node_value

Method min_node_value

binarytree/__init__.py:1375–1394  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

_get_tree_propertiesFunction · 0.85

Tested by

no test coverage detected