This documents the development version of NetworkX. Documentation for the current release can be found here.
Relabel graph using “label” node keyword for node label.
A NetworkX graph read from GEXF data
A NetworkX graph with relabeled nodes
If node labels are missing or not unique while relabel=True.
This function relabels the nodes in a NetworkX graph with the “label” attribute. It also handles relabeling the specific GEXF node attributes “parents”, and “pid”.