We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7239514 commit 3605bb1Copy full SHA for 3605bb1
pyrdf2vec/graphs/kg.py
@@ -406,6 +406,9 @@ def _fill_hops(self, entities: Entities) -> None:
406
hops = self._res2hops(Vertex(entity), res)
407
self._entity_hops.update({entity: hops})
408
409
+ @cachedmethod(
410
+ operator.attrgetter("cache"), key=partial(hashkey, "_get_hops")
411
+ )
412
def _get_hops(self, vertex: Vertex, is_reverse: bool = False) -> List[Hop]:
413
"""Returns the hops of a vertex for a local Knowledge Graph.
414
0 commit comments