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

Method _get_succ_cache

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

Source from the content-addressed store, hash-verified

360 return gid, node_attr_cache
361
362 def _get_succ_cache(self, gid):
363 op = dag_utils.report_graph(self._graph, types_pb2.SUCC_BY_GID, gid=gid)
364 archive = op.eval()
365 gid = archive.get_uint64()
366 fp = io.BytesIO(archive.get_bytes())
367 succ_cache = msgpack.load(fp, use_list=False)
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)

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