#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

Relabeling nodes

Relabeling

convert_node_labels_to_integers(G[, …])

Returns a copy of the graph G with the nodes relabeled using consecutive integers.

relabel_nodes(G, mapping[, copy])

Relabel the nodes of the graph G.