relabel_graph_nodes#
- iqm.applications.graph_utils.relabel_graph_nodes(graph)[source]#
Map original node labels of the
Graph
to new ones between 0 and graph.number_of_nodes - 1.Creates two dictionaries that keep track of the mapping between original labels and new labels numbered between 0 and graph.number_of_nodes - 1.