[Nauty-list] readgraph()

William Rummler w.a.rummler at gmail.com
Wed Feb 16 05:58:54 EST 2011

The easiest (and a very compact) way to save packed graphs is by
writing them to a file with writeg6(). They can then be loaded from
that file with opengraphfile() and, for each graph, readg(). Also, by
saving them this way, you can very easily use your file of saved
graphs with all of the gtools programs.

If you want a human-readable way to save them, I think I would still
recommend this approach but also mention that you can use the gtools
program listg on your saved file to view or convert the graphs in your
graph6 file to a human-readable format.

- William

On Tue, Feb 15, 2011 at 10:42 AM, Susanne Niess <niess at ma.tum.de> wrote:
> There is another problem I have with handling files. putgraph() seems to
> make files in the sparse representation and readgraph() cannot read those
> files (at least not when I am using them - maybe I just missed something
> about how to use them). Is there also a possibility to save a file of graphs
> in the packed form?

More information about the Nauty mailing list