How to add label in networkx matrix for each nodes in python?

How to add label in networkx matrix for each nodes in python to write in gexf format?

import networkx as nx
H = nx.Graph(G)
nx.write_gexf(H, "file.gexf")
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum