graphscope.framework.dag_utils.context_to_numpy

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

Retrieve results as a numpy ndarray.

Parameters
  • results (Context) – Results return by run_app operation, store the query results.

  • selector (str) – Select the type of data to retrieve.

  • vertex_range (str) – Specify a range to retrieve.

Returns

An op to retrieve query results and convert to numpy ndarray.