MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _node

Function _node

tests/test_pascal_record_methods.py:30–33  ·  view source on GitHub ↗
(r, label)

Source from the content-addressed store, hash-verified

28
29
30def _node(r, label):
31 matches = [n for n in r["nodes"] if n["label"] == label]
32 assert len(matches) == 1, f"expected exactly one node labeled {label!r}, got {matches}"
33 return matches[0]
34
35
36def _method_edges_from(r, owner_id):

Calls

no outgoing calls

Tested by

no test coverage detected