62 if (
this != &source) {
71 if (
this == &other)
return true;
73 if (
size() != other.
size())
return false;
77 for (
const auto& nid:
nodes()) {
80 }
catch (
NotFound const&) {
return false; }
83 for (
const auto& edge:
edges()) {
Class representing probabilistic undirected model.
Interface-like class encapsulating basic functionalities for a IMarkovRandomFieldwork.
The base class for all undirected edges.
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
GraphicalModel & operator=(const GraphicalModel &source)
Private copy operator.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
Exception : the element we looked for cannot be found.
bool exists(const Key &k) const
Indicates whether a given elements belong to the set.
virtual ~UGmodel()
Destructor.
UGmodel()
Default constructor.
const NodeGraphPart & nodes() const final
Returns a constant reference to the dag of this Bayes Net.
UGmodel & operator=(const UGmodel &source)
Private copy operator.
UndiGraph graph_
The DAG of this Directed Graphical Model.
bool hasSameStructure(const UGmodel &other)
check if nodes X and nodes Y are independent given nodes Z
const EdgeSet & edges() const
return true if the edge node1-node2 exists in the UGModel
Size sizeEdges() const
Returns the number of arcs in this Directed Graphical Model.
virtual Size size() const final
Returns the number of variables in this Directed Graphical Model.
gum is the global namespace for all aGrUM entities