num::structures::sample_clique_tree¶
Defined in header <structures/graph/clique.hpp>
template <typename Weight, std::integral Index, typename Queue, typename Rng>
void sample_clique_tree(array<array<multi_edge<Weight, Index>>> &G, Queue &q,
const array<multi_edge<Weight, Index>> &nbr,
Weight total_weight, Rng &rng, std::size_t trees = 1);
Eliminate v approximately by sampling a spanning tree of its neighbours: \(\mathbb{E}[\tilde{L}^{(v)}] = \mathrm{Sc}(L)\). Edge \(ij\) is kept with \(p_{ij} = (c_i + c_j) / C\), weighted \(c_i c_j / (c_i + c_j)\).