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

Method add_points

graph.py:540–544  ·  view source on GitHub ↗

Add new points with given names in list pnames.

(self, pnames: list[str])

Source from the content-addressed store, hash-verified

538 return list(self._name2node.values())
539
540 def add_points(self, pnames: list[str]) -> list[Point]:
541 """Add new points with given names in list pnames."""
542 result = [self.new_node(Point, name) for name in pnames]
543 self._name2point.update(zip(pnames, result))
544 return result
545
546 def names2nodes(self, pnames: list[str]) -> list[gm.Node]:
547 return [self._name2node[name] for name in pnames]

Callers

nothing calls this directly

Calls 1

new_nodeMethod · 0.95

Tested by

no test coverage detected