sampo.structurator.light_modifications#

Overview#

Function#

work_graph_ids_simplification(wg, id_offset, change_id)

Creates a new WorkGraph with simplified numeric ids (numeric ids are converted to a string)

Functions#

sampo.structurator.light_modifications.work_graph_ids_simplification(wg: sampo.schemas.graph.WorkGraph, id_offset: int = 0, change_id: bool = True) sampo.schemas.graph.WorkGraph#

Creates a new WorkGraph with simplified numeric ids (numeric ids are converted to a string) :param wg: original WorkGraph :param id_offset: start for numbering new ids :param change_id: Do IDs in the new graph need to be changed :return: new WorkGraph with numeric ids