23 #ifndef DOXYGEN_SHOULD_SKIP_THIS 30 template <
typename GS1,
typename GS2 >
32 const BayesNet< GS2 >& test) {
33 if (ref.size() != test.size()) {
34 GUM_ERROR(OperationNotAllowed,
"Graphs of different sizes");
36 for (
const NodeId node : ref.dag().asNodeSet()) {
37 if (!test.dag().existsNode(node)) {
39 "Test doesn't contain node " << node <<
" from ref");
43 MixedGraph ref_eg = EssentialGraph(ref).mixedGraph();
44 MixedGraph test_eg = EssentialGraph(test).mixedGraph();
49 template <
typename GUM_SCALAR >
51 const MixedGraph& test) {
52 MixedGraph ref_eg = EssentialGraph(ref).mixedGraph();
56 template <
typename GUM_SCALAR >
58 const BayesNet< GUM_SCALAR >& test) {
59 MixedGraph test_eg = EssentialGraph(test).mixedGraph();
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void compare(const DiGraph &ref, const DiGraph &test)
compare two DiGraphs
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size NodeId
Type for node ids.
#define GUM_ERROR(type, msg)