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

Method all_paras

graph.py:2851–2855  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2849 yield a, b, c, d, e, f, g, h # where a==c, e==g
2850
2851 def all_paras(self) -> Generator[tuple[Point, ...], None, None]:
2852 for d in self.type2nodes[Direction]:
2853 for l1, l2 in utils.perm2(d.neighbors(Line)):
2854 for a, b, c, d in utils.all_4points(l1, l2):
2855 yield a, b, c, d
2856
2857 def all_perps(self) -> Generator[tuple[Point, ...], None, None]:
2858 for ang in self.vhalfpi.neighbors(Angle):

Callers 2

test_enumerate_parasMethod · 0.80
match_allFunction · 0.80

Calls 1

neighborsMethod · 0.80

Tested by 1

test_enumerate_parasMethod · 0.64