DOKK / manpages / debian 12 / nauty / nauty-dimacs2g.1.en
NAUTY-DIMACS2G(1) Nauty Manual NAUTY-DIMACS2G(1)

nauty-dimacs2g - convert files of graphs in DIMACS format to stdout in sparse6 format

dimacs2g [-n#:#] [infile...]

Read files of graphs in Dimacs format and write them to stdout.
Use dreadnaut format (default is sparse6)
Specify a range of n values for output
A string to write before each graph.
A string to write after eacg graph.

-a and -b only operate for dreadnaut output;

and should be given in separate arguments.
Don't copy "c" comments from the input.
Input files with name *.gz are ungzipped.
January 2023 nauty 2.8.6