vg
tools for working with variation graphs
|
#include <cluster.hpp>
Classes | |
class | iterator |
Public Types | |
using | const_iterator = iterator |
Public Member Functions | |
ShuffledPairs (size_t num_items) | |
iterator | begin () const |
iterator | end () const |
Private Attributes | |
size_t | num_items |
size_t | num_pairs |
size_t | larger_prime |
size_t | primitive_root |
Iterate over pairsets of integers in a pseudorandom but deterministic order. We use the same permutation every time for a given number of items to pair up.
vg::ShuffledPairs::ShuffledPairs | ( | size_t | num_items | ) |
Make a new iterable pairing up the given number of items.
ShuffledPairs::iterator vg::ShuffledPairs::begin | ( | ) | const |
Get an iterator to the first pair.
ShuffledPairs::iterator vg::ShuffledPairs::end | ( | ) | const |
Get an iterator to the past-the-end pair.
|
private |
|
private |
|
private |
|
private |