write_graphml¶
-
write_graphml
(G, path, encoding='utf-8', prettyprint=True)[source]¶ Write G in GraphML XML format to path
Parameters: Examples
>>> G=nx.path_graph(4) >>> nx.write_graphml(G, "test.graphml")
Notes
This implementation does not support mixed graphs (directed and unidirected edges together) hyperedges, nested graphs, or ports.