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

Method has_node

lightrag/base.py:452–460  ·  view source on GitHub ↗

Check if a node exists in the graph. Args: node_id: The ID of the node to check Returns: True if the node exists, False otherwise

(self, node_id: str)

Source from the content-addressed store, hash-verified

450
451 @abstractmethod
452 async def has_node(self, node_id: str) -> bool:
453 """Check if a node exists in the graph.
454
455 Args:
456 node_id: The ID of the node to check
457
458 Returns:
459 True if the node exists, False otherwise
460 """
461
462 @abstractmethod
463 async def has_edge(self, source_node_id: str, target_node_id: str) -> bool:

Callers 8

has_nodes_batchMethod · 0.95
adelete_by_entityFunction · 0.45
_edit_entity_implFunction · 0.45
aedit_entityFunction · 0.45
acreate_entityFunction · 0.45
acreate_relationFunction · 0.45
_merge_entities_implFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected