Macaulay2 » Documentation
Packages » NautyGraphs :: sparse6ToGraph6
next | previous | forward | backward | up | index | toc

# sparse6ToGraph6 -- converts a Sparse6 string to a Graph6 string

- Usage:
    `g6 = sparse6ToGraph6 s6`
- Inputs:
  - s6, a string, a string in nauty's Sparse6 format
- Outputs:
  - g6, a string, a string in nauty's Graph6 format

## Description

This method converts a graph stored in nauty's Sparse6 format to a graph stored in nauty's Graph6 format. The Graph6 format has the benefit of being a constant length dependent only on the number of vertices.

    i1 : sparse6ToGraph6 ":DaY_~"

    o1 = Dhc

    i2 : sparse6ToGraph6 ":M"

    o2 = M????????????????

## See also

- Comparison of Graph6 and Sparse6 formats
- graph6ToSparse6 -- converts a Graph6 string to a Sparse6 string
- graphToString -- converts a graph to a string in the Graph6 format
- stringToEdgeIdeal -- converts a Sparse6 or Graph6 String to an edge ideal in the given polynomial ring
- stringToGraph -- converts a Sparse6 or Graph6 String to a Graph

## Ways to use sparse6ToGraph6:

- `sparse6ToGraph6(String)`

## For the programmer

The object sparse6ToGraph6 is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/NautyGraphs.m2:1595:0.