|
Graybat
1.1
Graph Approach for Highly Generic Communication Schemes Based on Adaptive Topologies
|
#include <Random.hpp>
Public Member Functions | |
| Random (int seed) | |
| template<typename T_Graph > | |
| std::vector< typename T_Graph::Vertex > | operator() (const unsigned processID, const unsigned processCount, T_Graph &graph) |
Random distribution of vertices of the graph to the the peers. All peers need to set the same random seed. Thus, all peers have the same random base. Therefore seeds that depend on varying parameters like time or pid or not applicable here.
| seed | static random seed for all peers |