graphscope.framework.dag_utils.graph_to_numpy

graphscope.framework.dag_utils.graph_to_numpy(graph, selector=None, vertex_range=None)[source]

Retrieve graph raw data as a numpy ndarray.

Parameters
  • graph (Graph) – Source graph.

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

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

Returns

An op to convert a graph’s data to numpy ndarray.