MCPcopy Index your code
hub / github.com/KnowledgeXLab/LeanRAG / get_direct_relations

Function get_direct_relations

_cluster_utils.py:299–301  ·  view source on GitHub ↗
(set1,set2,relations)

Source from the content-addressed store, hash-verified

297 ]
298 )
299def get_direct_relations(set1,set2,relations):
300 results={k:v for k,v in relations.items() if (k[0]in set1 and k[1] in set2) or (k[0] in set2 and k[1] in set1)}
301 return results
302
303async def _handle_single_entity_extraction(
304 record_attributes: list[str],

Callers 3

process_clusterFunction · 0.85
process_relationFunction · 0.85
perform_clusteringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected