MCPcopy Create free account
hub / github.com/alibaba/GraphScope / _get_pred_cache

Method _get_pred_cache

python/graphscope/nx/classes/cache.py:370–376  ·  view source on GitHub ↗
(self, gid)

Source from the content-addressed store, hash-verified

368 return gid, succ_cache
369
370 def _get_pred_cache(self, gid):
371 op = dag_utils.report_graph(self._graph, types_pb2.PRED_BY_GID, gid=gid)
372 archive = op.eval()
373 gid = archive.get_uint64()
374 fp = io.BytesIO(archive.get_bytes())
375 pred_cache = msgpack.load(fp, use_list=False)
376 return gid, pred_cache
377
378 def _get_succ_attr_cache(self, gid):
379 op = dag_utils.report_graph(self._graph, types_pb2.SUCC_ATTR_BY_GID, gid=gid)

Callers

nothing calls this directly

Calls 4

get_uint64Method · 0.80
evalMethod · 0.45
get_bytesMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected