# Saving a Networkx graph in GEXF format and visualize using Gephi in Python # importing the required moduleimport networkx as nx# making a simple graph with 1 node.G = nx.path_graph(10)# saving graph created above in gexf formatnx.write_gexf(G, "geeksforgeeks.gexf")