graphscope.framework.dag_utils.copy_graph

graphscope.framework.dag_utils.copy_graph(graph, copy_type='identical')[source]

Create copy operation for nx graph.

Parameters:
  • graph (nx.Graph) – A nx graph.

  • copy_type (str) – ‘identical’: copy graph to destination graph without any change. ‘reverse’: copy graph to destination graph with reversing the graph edges

Returns:

Operation