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

Function _edge

tests/test_pascal_base_class_resolution.py:36–44  ·  view source on GitHub ↗
(graph: dict, relation: str, src_label: str, tgt_label: str)

Source from the content-addressed store, hash-verified

34
35
36def _edge(graph: dict, relation: str, src_label: str, tgt_label: str):
37 labels = _labels(graph["nodes"])
38 for edge in graph["edges"]:
39 if edge.get("relation") != relation:
40 continue
41 if (labels.get(edge.get("source")) == src_label
42 and labels.get(edge.get("target")) == tgt_label):
43 return edge
44 return None
45
46
47def test_single_file_extraction_creates_a_local_stub():

Calls 2

_labelsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected