MCPcopy Index your code
hub / github.com/google-deepmind/alphageometry / is_equal

Function is_equal

geometry.py:295–302  ·  view source on GitHub ↗
(x: Node, y: Node, level: int = None)

Source from the content-addressed store, hash-verified

293
294
295def is_equal(x: Node, y: Node, level: int = None) -> bool:
296 if x == y:
297 return True
298 if x._val is None or y._val is None:
299 return False
300 if x.val != y.val:
301 return False
302 return is_equiv(x._val, y._val, level)
303
304
305def bfs_backtrack(

Callers

nothing calls this directly

Calls 1

is_equivFunction · 0.85

Tested by

no test coverage detected