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

Function _node_id

tests/test_python_import_resolution.py:21–28  ·  view source on GitHub ↗
(result: dict, label: str, source_file: str)

Source from the content-addressed store, hash-verified

19
20
21def _node_id(result: dict, label: str, source_file: str) -> str:
22 matches = [
23 node["id"]
24 for node in result["nodes"]
25 if node.get("label") == label and node.get("source_file") == source_file
26 ]
27 assert len(matches) == 1
28 return matches[0]
29
30
31def _has_edge(result: dict, source: str, target: str, relation: str) -> bool:

Calls 1

getMethod · 0.45

Tested by

no test coverage detected