graphscope.framework.dag_utils.modify_vertices¶
- graphscope.framework.dag_utils.modify_vertices(graph, modify_type, vertices, attr={})[source]¶
Create modify vertices operation for nx graph.
- Parameters:
graph (
nx.Graph
) – A nx graph.modify_type (type_pb2.(NX_ADD_NODES | NX_DEL_NODES | NX_UPDATE_NODES)) – The modify type
vertices (list) – node list.
- Returns:
An op to modify vertices on the graph.