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

Function _node

tests/test_extract.py:6980–6982  ·  view source on GitHub ↗
(G, label, suffix)

Source from the content-addressed store, hash-verified

6978
6979
6980def _node(G, label, suffix):
6981 return next(n for n, d in G.nodes(data=True)
6982 if d.get("label") == label and str(d.get("source_file", "")).endswith(suffix))
6983
6984
6985def _hops(G, a, b):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected