nauty-parser-1.0.0.0: Parse/encode graph6, digraph6 and sparse6 formats (nauty).
Copyright(c) Marcelo Garlet Milani 2026
LicenseMIT
Maintainermgmilani@pm.me
Stabilityunstable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Nauty.Internal.Encoding

Description

This module contains internal functions used by other modules. Except for test cases, you should not import this module.

Synopsis

Documentation

encodeVector :: Word64 -> [Word8] -> Word8 -> Int -> [Word8] Source #

Encode an 8-bit vector as 6-bit words.

numBits :: Num a => Word64 -> a Source #

Minimum amount of bits required to represent the number.

encodeNumber :: Word64 -> Text Source #

Encode a number.