Module graph6

read and write nauty's graph6 format

Functions

twoGraphsToDreadnaut (G, H) Converts 2 graphs to a single graph in dreadnaut format.
dreadnaut (dn) run dreadnaut with a given graph in dreadnaut format
graphToG6Mini (G) returns the lexicophraphical minimal graph6 repr.
readG6List (path, skip, last) reads a list of Graphs in g6 notation.
readG6Dir (dir) reads a directory of files with lists in g6 notation.

Tables

namedG6 G6 strings of certain fixed graphs


Functions

twoGraphsToDreadnaut (G, H)
Converts 2 graphs to a single graph in dreadnaut format. Assumes that G:n()==H:n()

Parameters:

  • G
  • H

Returns:

    string dreadnaut string for graph with 2n+2 vertices
dreadnaut (dn)
run dreadnaut with a given graph in dreadnaut format

Parameters:

  • dn
graphToG6Mini (G)
returns the lexicophraphical minimal graph6 repr. of G

Parameters:

  • G
readG6List (path, skip, last)
reads a list of Graphs in g6 notation.

Parameters:

  • path File in g6 format
  • skip number of lines to skip (e.g. header)
  • last last line to read (incl. skipped lines)

Returns:

    Graph[]
readG6Dir (dir)
reads a directory of files with lists in g6 notation. A file dirlist.txt is expected which contains all files in order. You may at a README file etc. to the directory withlout listing it in dirlist.txt.

Parameters:

  • dir directory to read from

Returns:

    Graph[]

Tables

namedG6
G6 strings of certain fixed graphs

Fields:

  • m3
  • m4
  • p3
  • p4
  • p5
  • p6
  • p7
  • p8
  • p9
generated by LDoc 1.5.0 Last updated 2024-07-29 15:34:55