#include <ensemble.hpp>
Public Member Functions | |
bool | operator() (const undirected_graph &G) |
Validate shape of graph. | |
bool | operator() (canonical< W, shape::noselflinks > &ensemble) |
propose link switch update, avoidign self links | |
bool | operator() (microcanonical< W, shape::noselflinks > &ensemble) |
propose X-move preserving the multi-link graph subset | |
bool | operator() (grandcanonical< W, shape::noselflinks > &ensemble) |
propose link add/remove preserving multi-link graph subset | |
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 = false |
static identification of shape |
Multiple links are allowd, self links are now.
bool graphgen::shape::noselflinks< W >::operator() | ( | const undirected_graph & | G | ) |
Validate shape of graph.
Returns true if G
is a multi graph, otherwise false
bool graphgen::shape::noselflinks< W >::operator() | ( | canonical< W, shape::noselflinks< W > > & | ensemble | ) | [inline] |
propose link switch update, avoidign self links
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::source(), graphgen::undirected_graph::target(), and graphgen::canonical< W, R >::target.
bool graphgen::shape::noselflinks< W >::operator() | ( | microcanonical< W, shape::noselflinks< W > > & | ensemble | ) | [inline] |
propose X-move preserving the multi-link graph subset
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(), graphgen::microcanonical< W, R >::rand, graphgen::undirected_graph::source(), and graphgen::undirected_graph::target().