#include <ensemble.hpp>
Public Member Functions | |
bool | operator() (const undirected_graph &G) |
Validate shape of graph. | |
bool | operator() (canonical< W, shape::multigraph > &ensemble) |
propose T-move with no restrictions | |
bool | operator() (microcanonical< W, shape::multigraph > &ensemble) |
propose X-move with no restrictions | |
bool | operator() (grandcanonical< W, shape::multigraph > &ensemble) |
propose link addition/removal with no restrictions | |
Static Public Attributes | |
static const bool | restrict_tree = false |
static identification of shape | |
static const bool | restrict_simple = false |
static identification of shape | |
static const bool | allow_multi = true |
static identification of shape | |
static const bool | allow_self = true |
static identification of shape |
Multiple and self links are allowed.
bool graphgen::shape::multigraph< W >::operator() | ( | const undirected_graph & | G | ) |
Validate shape of graph.
Returns true if G
is a multi graph, otherwise false
bool graphgen::shape::multigraph< W >::operator() | ( | canonical< W, shape::multigraph< W > > & | ensemble | ) | [inline] |
propose T-move with no restrictions
References graphgen::canonical< W, R >::graph, graphgen::canonical< W, R >::link, graphgen::undirected_graph::linkpool(), graphgen::undirected_graph::nl(), graphgen::undirected_graph::nv(), graphgen::canonical< W, R >::rand, graphgen::undirected_graph::target(), and graphgen::canonical< W, R >::target.
bool graphgen::shape::multigraph< W >::operator() | ( | microcanonical< W, shape::multigraph< W > > & | ensemble | ) | [inline] |
propose X-move with no restrictions
prevents l1==l2 with respect to uniform sampling
References graphgen::microcanonical< W, R >::graph, graphgen::microcanonical< W, R >::link1, graphgen::microcanonical< W, R >::link2, graphgen::undirected_graph::linkpool(), graphgen::undirected_graph::nl(), and graphgen::microcanonical< W, R >::rand.