graphscope.framework.dag_utils.modify_edges#

graphscope.framework.dag_utils.modify_edges(graph, modify_type, edges, attr={}, weight=None)[source]#

Create modify edges operation for nx graph.

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

  • modify_type (type_pb2.(NX_ADD_EDGES | NX_DEL_EDGES | NX_UPDATE_EDGES)) – The modify type

  • edges (list) – List of edges to be inserted into or delete from graph based on modify_type

Returns:

An op to modify edges on the graph.