MCPcopy
hub / github.com/HKUDS/LightRAG / get_node_edges

Method get_node_edges

lightrag/base.py:523–532  ·  view source on GitHub ↗

Get all edges connected to a node. Args: source_node_id: The ID of the node to get edges for Returns: A list of (source_id, target_id) tuples representing edges, or None if the node doesn't exist

(self, source_node_id: str)

Source from the content-addressed store, hash-verified

521
522 @abstractmethod
523 async def get_node_edges(self, source_node_id: str) -> list[tuple[str, str]] | None:
524 """Get all edges connected to a node.
525
526 Args:
527 source_node_id: The ID of the node to get edges for
528
529 Returns:
530 A list of (source_id, target_id) tuples representing edges,
531 or None if the node doesn't exist
532 """
533
534 async def get_nodes_batch(self, node_ids: list[str]) -> dict[str, dict]:
535 """Get nodes as a batch using UNWIND

Callers 5

get_nodes_edges_batchMethod · 0.95
adelete_by_entityFunction · 0.45
_edit_entity_implFunction · 0.45
_merge_entities_implFunction · 0.45
_rebuild_single_entityFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected