#include <randomizer.h>
Public Methods | |
| Randomizer (NodeCount noOfNodes) | |
| The constructor. | |
| RelabeledEdge | randomize (const Edge &edge) const |
| Randomizes an Edge. | |
Private Methods | |
| NodeID | randomize (NodeID nodeID) const |
| Randomizes a node ID using the underlying bijection. | |
Private Attributes | |
| NodeCount | _noOfNodes |
| The number of nodes that specifies the domain and co-domain of the bijection. | |
| Bijection | _bijection |
| The underlying bijection. | |
Either RandomizerLinearCongruence or RandomizerFeistel can be used as underlying bijection.
Definition at line 131 of file randomizer.h.
|
||||||||||
|
Randomizes an Edge. The source and the target vertices are randomized using the bijection. The original source and target vertices are saved, so a RelabeledEdge, which contains both the randomized and the original vertices, is returned. Definition at line 145 of file randomizer.h. References Edge::source(), EdgeWithoutSource::target(), and EdgeWithoutSource::weight(). |
1.2.17