Skip to main content

Module utils

Module utils 

Source
Expand description

Miscellaneous utilities.

Re-exports§

pub use matrix::Matrix;
pub use sort_pairs::SortPairs;
pub use par_sort_pairs::ParSortPairs;
pub use par_sort_iters::ParSortIters;

Modules§

gaps
grouped_gaps
matrix
par_sort_iters
Facilities to sort in parallel externally (labelled) pairs of nodes returned by a sequence of iterators.
par_sort_pairs
Facilities to sort in parallel externally (labelled) pairs of nodes returned by a ParallelIterator, returning a SplitIters structure.
sort_pairs
Facilities to sort externally pairs of nodes with an associated label.

Structs§

ArcMmapHelper
A clonable version of a read-only MmapHelper.
Converter
A decoder that encodes the read values using the given encoder. This is commonly used to change the codes of a graph without decoding and re-encoding it but by changing the codes.
JavaPermutation
Maps into memory a file of big-endian 64-bit values, making it accessible as a BitFieldSlice<usize>.
MmapHelper
Helper struct providing convenience methods and type-based AsRef access to an Mmap or MmapMut instance.
RaggedArray
A ragged array that can be only appended to.
SplitIters
A structure holding partition iterators and their boundaries.
Triple
An arc expressed as a pair of nodes and the associated label.

Enums§

Granularity
Granularity of parallel tasks, specified transparently by nodes or arcs.
MemoryUsage
An enum expressing the memory requirements for batched algorithms such as SortPairs, ParSortPairs, and ParSortIters.

Traits§

BatchCodec
A trait for encoding and decoding batches of sorted triples.

Functions§

humanize
Writes a human-readable representation of a large number using SI prefixes units.
temp_dir
Creates a new random dir inside the given folder

Type Aliases§

BitReader
BitWriter
CodecIter
Convenience alias to extract the iterator type of the decoded batch from a BatchCodec.
DefaultBatchCodec
The recommended default batch codec for unlabelled batches.