graphscope.framework.dag_utils.add_labels_to_graph¶
- graphscope.framework.dag_utils.add_labels_to_graph(graph, loader_op)[source]¶
Add new labels to existed graph.
- Parameters:
graph (
Graph
) – A graph instance. May not be fully loaded. i.e. it’s in a building procedure.loader_op (
graphscope.framework.operation.Operation
) – Operation of loader.
- Raises:
NotImplementedError – When encountered not supported graph type.
- Returns:
The operation.
Notes
Since we don’t want to trigger the loading, we must not use any api that can trigger the loading process implicitly.