MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / is_left

Method is_left

data_structures/binary_tree/red_black_tree.py:440–444  ·  view source on GitHub ↗

Returns true iff this node is the left child of its parent.

(self)

Source from the content-addressed store, hash-verified

438 return self.parent.left
439
440 def is_left(self) -> bool:
441 """Returns true iff this node is the left child of its parent."""
442 if self.parent is None:
443 return False
444 return self.parent.left is self
445
446 def is_right(self) -> bool:
447 """Returns true iff this node is the right child of its parent."""

Callers 3

_insert_repairMethod · 0.95
removeMethod · 0.95
_remove_repairMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected