NetworkX

Previous topic

networkx.readwrite.gexf.write_gexf

Next topic

GML

networkx.readwrite.gexf.relabel_gexf_graph

networkx.readwrite.gexf.relabel_gexf_graph(G)

Relabel graph using “label” node keyword for node label.

Parameters :

G : graph

A NetworkX graph read from GEXF data

Returns :

H : graph

A NetworkX graph with relabed nodes

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”.