141 #ifndef GUM_NO_INLINE UGmodel & operator=(const UGmodel &source)
Private copy operator.
Virtual base class for probabilistic graphical models.
UndiGraph _graph
The DAG of this Directed Graphical Model.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
const NodeSet & neighbours(const NodeId id) const
returns the neighbours of a node as set of nodes
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
const EdgeSet & edges() const
returns the neighbours of a node as set of nodes
virtual ~UGmodel()
Destructor.
virtual NodeId nodeId(const DiscreteVariable &var) const =0
Return id node src discrete var pointer.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Base class for discrete random variable.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
UGmodel()
Default constructor.
Virtual base class for PGMs using a undirected graph.
const NodeGraphPart & nodes() const
Returns a constant reference to the dag of this Bayes Net.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Class for node sets in graph.
Size sizeEdges() const
Returns the number of arcs in this Directed Graphical Model.
virtual const DiscreteVariable & variableFromName(const std::string &name) const =0
Getter by name.
const UndiGraph & graph() const
Returns a constant reference to the dag of this Bayes Net.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Base class for undirected graphs.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Size NodeId
Type for node ids.
virtual Size size() const final
Returns the number of variables in this Directed Graphical Model.
bool hasSameStructure(const UGmodel &other)