MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __gt__

Method __gt__

divide_and_conquer/convex_hull.py:57–62  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

55 return not self == other
56
57 def __gt__(self, other):
58 if self.x > other.x:
59 return True
60 elif self.x == other.x:
61 return self.y > other.y
62 return False
63
64 def __lt__(self, other):
65 return not self > other

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected