MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / why_equal

Function why_equal

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

Source from the content-addressed store, hash-verified

404
405
406def why_equal(x: Node, y: Node, level: int = None) -> list[Any]:
407 if x == y:
408 return []
409 if not x._val or not y._val:
410 return None
411 if x._val == y._val:
412 return []
413 return x._val.why_equal([y._val], level)
414
415
416class Direction(Node):

Callers

nothing calls this directly

Calls 1

why_equalMethod · 0.45

Tested by

no test coverage detected