Write G in GraphML XML format to path
Parameters : | G : graph
path : file or string
encoding : string (optional)
prettyprint : bool (optional)
|
---|
Notes
This implementation does not support mixed graphs (directed and unidirected edges together) hyperedges, nested graphs, or ports.
Examples
>>> G=nx.path_graph(4)
>>> nx.write_graphml(G, "test.graphml")