Pickle
networkx.write_gpickle
Read graph object in Python pickle format
G=nx.path_graph(4) nx.write_gpickle(G,”test.gpickle”) G=nx.read_gpickle(“test.gpickle”)
See cPickle.