relabel_gexf_graph#
- relabel_gexf_graph(G)[source]#
Relabel graph using âlabelâ node keyword for node label.
- Parameters:
- Ggraph
A NetworkX graph read from GEXF data
- Returns:
- Hgraph
A NetworkX graph with relabeled nodes
- Raises:
- NetworkXError
If node labels are missing or not unique while relabel=True.
Notes
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â.