SparseGraph6¶
Functions for reading and writing graphs in the graph6 or sparse6 file formats.
According to the author of these formats,
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.
graph6 is suitable for small graphs, or large dense graphs. sparse6 is more space-efficient for large sparse graphs.
Graph6¶
Functions for reading and writing graphs in the graph6 format.
The graph6 file format is suitable for small graphs or large dense graphs. For large sparse graphs, use the sparse6 format.
For more information, see the graph6 homepage.
parse_graph6 (string) |
Read a simple undirected graph in graph6 format from string. |
read_graph6 (path) |
Read simple undirected graphs in graph6 format from path. |
generate_graph6 (G[, nodes, header]) |
Generate graph6 format string from a simple undirected graph. |
write_graph6 (G, path[, nodes, header]) |
Write a simple undirected graph to path in graph6 format. |
Sparse6¶
Functions for reading and writing graphs in the sparse6 format.
The sparse6 file format is a space-efficient format for large sparse graphs. For small graphs or large dense graphs, use the graph6 file format.
For more information, see the sparse6 homepage.
parse_sparse6 (string) |
Read an undirected graph in sparse6 format from string. |
read_sparse6 (path) |
Read an undirected graph in sparse6 format from path. |
generate_sparse6 (G[, nodes, header]) |
Generate sparse6 format string from an undirected graph. |
write_sparse6 (G, path[, nodes, header]) |
Write graph G to given path in sparse6 format. |