graphscope.framework.dag_utils.context_to_numpy

graphscope.framework.dag_utils.context_to_numpy(context, selector=None, vertex_range=None, axis=0)[源代码]

将结果作为numpy ndarray返回。

Parameters:
  • results (Context) – 由run_app操作返回的结果,存储查询结果。

  • selector (str) – 选择要检索的数据类型。

  • vertex_range (str) – 指定要检索的范围。

Returns:

一个用于检索查询结果并转换为numpy ndarray的操作。