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

Method all_congs

graph.py:2868–2874  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2866 yield a, b, c, d
2867
2868 def all_congs(self) -> Generator[tuple[Point, ...], None, None]:
2869 for l in self.type2nodes[Length]:
2870 for s1, s2 in utils.perm2(l.neighbors(Segment)):
2871 (a, b), (c, d) = s1.points, s2.points
2872 for x, y in [(a, b), (b, a)]:
2873 for m, n in [(c, d), (d, c)]:
2874 yield x, y, m, n
2875
2876 def all_eqratios_8points(self) -> Generator[tuple[Point, ...], None, None]:
2877 """List all sets of 8 points that make two equal ratios."""

Callers 2

test_enumerate_congsMethod · 0.80
match_allFunction · 0.80

Calls 1

neighborsMethod · 0.80

Tested by 1

test_enumerate_congsMethod · 0.64