sampo.structurator.delete_graph_node#
Overview#
|
Deletes a task from WorkGraph. |
|
- |
Functions#
- sampo.structurator.delete_graph_node.delete_graph_node(original_wg: sampo.schemas.graph.WorkGraph, remove_gn_id: str, change_id: bool = True) sampo.schemas.graph.WorkGraph#
Deletes a task from WorkGraph. If the task consists of several inseparable nodes this function deletes all of those nodes :param original_wg: WorkGraph from which a task is deleted :param remove_gn_id: id of the node, corresponding to the deleted task. If the task consists of several inseparable nodes, this is id of one of them :param change_id: do ids in the new graph need to be changed :return: new WorkGraph with deleted task
- sampo.structurator.delete_graph_node._node_deletion(remove_gn: sampo.schemas.graph.GraphNode, nodes: dict[str, sampo.schemas.graph.GraphNode])#