21 #ifndef DOXYGEN_SHOULD_SKIP_THIS 28 template <
typename GS1,
typename GS2 >
30 const BayesNet< GS2 >& test) {
31 if (ref.size() != test.size()) {
32 GUM_ERROR(OperationNotAllowed,
"Graphs of different sizes");
34 for (
const NodeId node : ref.dag().asNodeSet()) {
35 if (!test.dag().existsNode(node)) {
37 "Test doesn't contain node " << node <<
" from ref");
41 MixedGraph ref_eg = EssentialGraph(ref).mixedGraph();
42 MixedGraph test_eg = EssentialGraph(test).mixedGraph();
47 template <
typename GUM_SCALAR >
49 const MixedGraph& test) {
50 MixedGraph ref_eg = EssentialGraph(ref).mixedGraph();
54 template <
typename GUM_SCALAR >
56 const BayesNet< GUM_SCALAR >& test) {
57 MixedGraph test_eg = EssentialGraph(test).mixedGraph();
gum is the global namespace for all aGrUM entities
Class building the essential Graph from a DAGmodel.
void compare(const DiGraph &ref, const DiGraph &test)
compare two DiGraphs
Base classes for mixed directed/undirected graphs.
Size NodeId
Type for node ids.
#define GUM_ERROR(type, msg)