重新标记节点#

再贴标签#

convert_node_labels_to_integers(G[, ...])

返回图G的副本,其中节点使用连续整数重新标记。

relabel_nodes(G, mapping[, copy])

根据给定的映射重新标记图G的节点。