Operation¶
Operation object¶
- class graphscope.framework.operation.Operation(session_id, op_type, inputs=None, output_types=None, config=None, large_attr=None, query_args=None)[source]¶
 Represents a dag op that performs computation on tensors.
For example
g2 = g1.add_vertices("path")create anOperationof type “ADD_LABELS” that takes operation ofg1as input, and produces a graph dag nodeg2which contains this operation as output.After the dag has been launched in a session, an Operation can be executed by :code`op.eval()` or passing it to
session.run.
  | 
Creates an   | 
Unique key for each   | 
|
Signature of its parents' signatures and its own parameters.  | 
|
  | 
Evaluate by   | 
BuiltIn operations¶
  | 
Wrapper for create an CREATE_APP Operation with configuration.  | 
  | 
Wrapper for create an BIND_APP Operation with configuration.  | 
  | 
Run bound app on the graph.  | 
  | 
Create an CREATE_GRAPH op, add op to default dag.  | 
  | 
Create a loader operation. :param vertex_or_edge_label_list: List of                                   (  | 
  | 
Add new labels to existed graph.  | 
  | 
Create an op to transform a   | 
  | 
Transform a   | 
  | 
Create modify edges operation for nx graph.  | 
  | 
Create modify vertices operation for nx graph.  | 
  | 
Create report operation for nx graph.  | 
  | 
|
  | 
Project property graph to a simple graph.  | 
  | 
Create copy operation for nx graph.  | 
  | 
Create to_directed operation graph.  | 
  | 
Create to_undirected operation for graph.  | 
  | 
Create view of nx graph. :param graph: A nx graph. :type graph:   | 
  | 
Create clear graph operation for nx graph.  | 
  | 
Create clear edges operation for nx graph.  | 
  | 
Create subgraph operation for nx graph.  | 
  | 
Uility method to create a unload Operation based on op type and op.  | 
  | 
Unload a loaded app.  | 
  | 
Unload a graph.  | 
  | 
|
  | 
Retrieve results as a numpy ndarray.  | 
  | 
Retrieve results as a pandas DataFrame.  | 
  | 
Retrieve results as vineyard tensor.  | 
  | 
Retrieve results as vineyard dataframe.  | 
  | 
Dump result to fd by drivers in vineyard.  | 
  | 
Output result to fd, this will be handled by registered vineyard C++ adaptor.  | 
  | 
|
  | 
Add a column to graph, produce a new graph.  | 
  | 
Retrieve graph raw data as a numpy ndarray.  | 
  | 
Retrieve graph raw data as a pandas DataFrame.  | 
  | 
Create a subgraph from gremlin output.  |