Read an undirected graph in sparse6 format from string.
| Parameters: | string : string
|
|---|---|
| Returns: | G : Graph |
| Raises: | NetworkXError :
|
See also
References
Sparse6 specification: http://cs.anu.edu.au/~bdm/data/formats.txt
Examples
>>> G = nx.parse_sparse6(':A_')
>>> sorted(G.edges())
[(0, 1), (0, 1), (0, 1)]