#include <ensemble.hpp>
Public Member Functions | |
grandcanonical (const undirected_graph &g, const W &w) | |
const undirected_graph & | get_graph () const |
access method | |
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. | |
Public Attributes | |
double | mu |
Chemical Potential. |
The grand-canonical pseudo ensemble for graphs consists of all graphs with a fixed number of vertices. The used elementary update is random link addition/removal.
W | selects the functional weight type | |
R | selects a shape restriction functor, restricting the sampled graph set |