MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / node_degree

Method node_degree

LightRAG/lightrag/storage.py:258–259  ·  view source on GitHub ↗
(self, node_id: str)

Source from the content-addressed store, hash-verified

256 return self._graph.nodes.get(node_id)
257
258 async def node_degree(self, node_id: str) -> int:
259 return self._graph.degree(node_id)
260
261 async def edge_degree(self, src_id: str, tgt_id: str) -> int:
262 return self._graph.degree(src_id) + self._graph.degree(tgt_id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected