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

Method why_connect

geometry.py:273–280  ·  view source on GitHub ↗
(self, node: Node, level: int = None)

Source from the content-addressed store, hash-verified

271 return self._val.why_equal([self.val], level)
272
273 def why_connect(self, node: Node, level: int = None) -> list[Any]:
274 rep = self.rep()
275 equivs = list(rep.edge_graph[node].keys())
276 if not equivs:
277 return None
278 equiv = equivs[0]
279 dep = rep.edge_graph[node][equiv]
280 return [dep] + self.why_equal(equiv, level)
281
282
283def why_connect(*pairs: list[tuple[Node, Node]]) -> list[Any]:

Callers 1

why_connectFunction · 0.80

Calls 2

repMethod · 0.95
why_equalMethod · 0.95

Tested by

no test coverage detected