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

Function _call_edges_matching

tests/test_ruby_resolution.py:61–69  ·  view source on GitHub ↗
(graph: dict, src_label: str, tgt_label: str)

Source from the content-addressed store, hash-verified

59
60
61def _call_edges_matching(graph: dict, src_label: str, tgt_label: str) -> list[dict]:
62 labels = _labels(graph["nodes"])
63 return [
64 edge
65 for edge in graph["edges"]
66 if edge.get("relation") == "calls"
67 and labels.get(edge.get("source")) == src_label
68 and labels.get(edge.get("target")) == tgt_label
69 ]
70
71
72def _owned_method_nid(graph: dict, owner_label: str, method_label: str) -> str:

Calls 2

_labelsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected