graphscope.framework.dag_utils.modify_edges¶
-
graphscope.framework.dag_utils.
modify_edges
(graph, modify_type, edges)[source]¶ Create modify edges operation for nx graph.
- Parameters
graph (
nx.Graph
) – A nx graph.modify_type (type_pb2.(ADD_EDGES | DEL_EDGES | 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.