MCPcopy Index your code
hub / github.com/clips/pattern / node_at

Method node_at

pattern/graph/__init__.py:534–538  ·  view source on GitHub ↗

Returns the node at (x,y) or None.

(self, x, y)

Source from the content-addressed store, hash-verified

532 n.draw(weighted)
533
534 def node_at(self, x, y):
535 """ Returns the node at (x,y) or None.
536 """
537 for n in self.nodes:
538 if n.contains(x, y): return n
539
540 def _add_node_copy(self, n, **kwargs):
541 # Magical fairy dust to copy subclasses of Node.

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected