29 #ifndef GUM_DAGMODEL_H 30 #define GUM_DAGMODEL_H 174 #ifndef GUM_NO_INLINE DAGmodel & operator=(const DAGmodel &source)
Private copy operator.
virtual const DiscreteVariable & variableFromName(const std::string &name) const =0
Getter by name.
Virtual base class for probabilistic graphical models.
const ArcSet & arcs() const
returns the set of nodes with arc ingoing to a given node
Virtual base class for PGMs using a DAG.
const NodeSet & children(const NodeId id) const
returns the set of nodes with arc outgoing from a given node
UndiGraph * __mutableMoralGraph
The moral graph of this Directed Graphical Model.
const NodeSet & parents(const NodeId id) const
returns the set of nodes with arc ingoing to a given node
Size sizeArcs() 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.
virtual ~DAGmodel()
Destructor.
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.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
bool hasSameStructure(const DAGmodel &other)
DAG _dag
The DAG of this Directed Graphical Model.
const Sequence< NodeId > & topologicalOrder(bool clear=true) const
The topological order stays the same as long as no variable or arcs are added or erased src the topol...
void __moralGraph() const
Returns the moral graph of this DAGModel.
DAGmodel()
Default constructor.
const NodeGraphPart & nodes() const
Returns a constant reference to the dag of this Bayes Net.
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Class for node sets in graph.
const UndiGraph & moralGraph(bool clear=true) const
The node's id are coherent with the variables and nodes of the topology.
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.
const DAG & dag() const
Returns a constant reference to the dag of this Bayes Net.
Size NodeId
Type for node ids.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
virtual NodeId nodeId(const DiscreteVariable &var) const =0
Return id node src discrete var pointer.