graphscope.framework.dag_utils.modify_vertices

graphscope.framework.dag_utils.modify_vertices(graph, modify_type, vertices)[source]

Create modify vertices operation for nx graph.

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

  • modify_type (type_pb2.(ADD_NODES | DEL_NODES | UPDATE_NODES)) – The modify type

  • vertices (list) – node list.

Returns

An op to modify vertices on the graph.