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.