write_pajek¶
-
write_pajek
(G, path, encoding='UTF-8')[source]¶ Write graph in Pajek format to path.
Parameters: Examples
>>> G=nx.path_graph(4) >>> nx.write_pajek(G, "test.net")
References
See http://vlado.fmf.uni-lj.si/pub/networks/pajek/doc/draweps.htm for format information.