Bits and Bytes

Bit Manipulations

GraphIdx.BitsModule.

Some bit manipulation routines.

source
hyperfloor(x)

Heighest power of 2 that is smaller than x.

Example

julia> bitstring(UInt8(123))
"01111011"

julia> bitstring(UInt8(GraphIdx.Bits.hyperfloor(123)))
"01000000"
source
GraphIdx.IoModule.

Input/output

source
GraphIdx.Io.DimacsModule.

Read/write DIMACS files

source

bin2asc(fname, out::IO)

Transform from binary into asci representation.

source

readdimacsbin(proc, fname)

Read the binary file located at fname and call proc(u::Int, v::Int) on every edge (u, v) of the graph.

source