networkx.read_pajek
networkx.parse_pajek
Enter search terms or a module, class or function name.
Write graph in Pajek format to path.
G : graph
A Networkx graph
path : file or string
File or filename to write. Filenames ending in .gz or .bz2 will be compressed.
References
See http://vlado.fmf.uni-lj.si/pub/networks/pajek/doc/draweps.htm for format information.
Examples
>>> G=nx.path_graph(4) >>> nx.write_pajek(G, "test.net")