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

Function _alias_extraction

tests/test_hypergraph.py:276–290  ·  view source on GitHub ↗

Three hyperedges, one per member-key spelling: nodes / members / node_ids.

()

Source from the content-addressed store, hash-verified

274# ---------------------------------------------------------------------------
275
276def _alias_extraction():
277 """Three hyperedges, one per member-key spelling: nodes / members / node_ids."""
278 return {
279 "nodes": [
280 {"id": "a", "label": "A", "file_type": "code", "source_file": "m.py"},
281 {"id": "b", "label": "B", "file_type": "code", "source_file": "m.py"},
282 {"id": "c", "label": "C", "file_type": "code", "source_file": "m.py"},
283 ],
284 "edges": [],
285 "hyperedges": [
286 {"id": "he_nodes", "label": "canon", "nodes": ["a", "b", "c"]},
287 {"id": "he_members", "label": "alias1", "members": ["a", "b", "c"]},
288 {"id": "he_node_ids", "label": "alias2", "node_ids": ["a", "b", "c"]},
289 ],
290 }
291
292
293def test_build_normalizes_member_aliases_to_nodes():

Calls

no outgoing calls

Tested by

no test coverage detected