Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

Relabeling nodes

Relabeling

convert_node_labels_to_integers(G[, ...]) Return a copy of the graph G with the nodes relabeled using
relabel_nodes(G, mapping[, copy]) Relabel the nodes of the graph G.