Write graph G to given path in sparse6 format. Parameters ———- G : Graph (undirected)
Raises: | NetworkXError :
|
---|
See also
Notes
The format does not support edge or node labels.
References
Sparse6 specification: http://cs.anu.edu.au/~bdm/data/formats.txt for details.
Examples
>>> G = nx.Graph([(0, 1), (0, 1), (0, 1)])
>>> nx.write_sparse6(G, 'test.s6')