43#ifndef DOXYGEN_SHOULD_SKIP_THIS
50 template <
typename GS1,
typename GS2 >
52 if (ref.size() != test.size()) {
GUM_ERROR(OperationNotAllowed,
"Graphs of different sizes") }
53 for (
const NodeId node: ref.dag().asNodeSet()) {
54 if (!test.dag().existsNode(node)) {
55 GUM_ERROR(InvalidNode,
"Test doesn't contain node " << node <<
" from ref")
58 PDAG ref_eg = EssentialGraph(ref).pdag();
59 auto eg = EssentialGraph(test);
60 PDAG test_eg = eg.pdag();
65 template <
typename GUM_SCALAR >
67 PDAG ref_eg = EssentialGraph(ref).pdag();
71 template <
typename GUM_SCALAR >
73 PDAG test_eg = EssentialGraph(test).pdag();
Base classes for partially directed acyclic graphs.
Class representing a Bayesian network.
Base class for partially directed acyclic graphs.
void compare(const DiGraph &ref, const DiGraph &test)
compare two DiGraphs
Class building the essential Graph from a DAGmodel.
#define GUM_ERROR(type, msg)
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities