NetworkX

Table Of Contents

Previous topic

write_yaml

Next topic

read_graph6

SparseGraph6

Read graphs in graph6 and sparse6 format.

Format

“graph6 and sparse6 are formats for storing undirected graphs in a compact manner, using only printable ASCII characters. Files in these formats have text type and contain one line per graph.” http://cs.anu.edu.au/~bdm/data/formats.html

See http://cs.anu.edu.au/~bdm/data/formats.txt for details.

read_graph6(path) Read simple undirected graphs in graph6 format from path.
parse_graph6(str) Read a simple undirected graph in graph6 format from string.
read_graph6_list(path) Read simple undirected graphs in graph6 format from path.
read_sparse6(path) Read simple undirected graphs in sparse6 format from path.
parse_sparse6(string) Read undirected graph in sparse6 format from string.
read_sparse6_list(path) Read undirected graphs in sparse6 format from path.