![]() |
fpmas 1.6
|
#include <random_graph_builder.h>
Static Public Member Functions | |
static void | seed (random::mt19937_64::result_type seed) |
Static Public Attributes | |
static random::DistributedGenerator | distributed_rd |
static random::mt19937_64 | rd |
Protected Member Functions | |
template<typename Generator_t , typename EdgeDist > | |
RandomGraphBuilder (Generator_t &generator, EdgeDist &edge_distribution) | |
Protected Attributes | |
std::function< std::size_t()> | num_edge |
A base class that can be used for graph builders based on a random number of outgoing edges for each node, according to the specified random distribution.
Static random generators are also available, so that the graph generation process can be controlled with fpmas::seed().
|
inlineprotected |
RandomGraphBuilder constructor.
Generator_t | random generator type (must satisfy UniformRandomBitGenerator) |
EdgeDist | edge count distribution (must satisfy RandomNumberDistribution) |
generator | random generator |
edge_distribution | outgoing edge count distribution |
|
static |
Seeds the distributed_rd
and rd
random generators.
seed | random seed |
|
protected |
Function object returning a random edge count.
|
static |
Static and distributed random generator.
|
static |
Static random generator, that should produce the same random number generation sequences on all processes, provided that the seed() method is properly called with the same argument on all processes (or not called at all, to use the default seed).