#include <ensemble.hpp>
Public Member Functions | |
microcanonical (undirected_graph &g) | |
microcanonical (undirected_graph &g, W &w) | |
const undirected_graph & | get_graph () const |
access method | |
const W & | set_weight (const W &w) |
access method | |
double | update () |
Run a single local Metropolis update process. | |
void | sweep (int n=0) |
Run a series of local updates. |
The micro-canonical pseudo ensemble for graphs consists of all graphs with a fixed degree sequence. Therefore, the number of nodes and edges is also fixed. The used elementary update is the X-move, exchanging the targets of two selected links.
W | selects the functional weight type | |
R | selects a shape restriction functor, restricting the sampled graph set |