![]() |
aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
|
Virtual base class for PGMs using a undirected graph. More...
#include <agrum/base/graphicalModels/UGmodel.h>
Public Member Functions | |
| bool | hasSameStructure (const UGmodel &other) const |
| check if nodes X and nodes Y are independent given nodes Z | |
| NodeProperty< NodeId > | connectedComponents () const |
| Returns the connected components of the underlying undirected graph. Each node maps to the id of its component root. | |
| NodeSet | family (const NodeId id) const final |
| returns the node as a NodeSet (in mixed graph : family is the node and its parents | |
| NodeSet | family (std::string_view name) const final |
| const UndiGraph & | internalGraph () const |
| Returns a const reference to the internal (unnamed) graph. O(1), no copy. Use for stable references or pointers (graph listeners). For named node access, use graph() instead. | |
| double | log10DomainSize () const |
Constructors / Destructors | |
| UGmodel () | |
| Default constructor. | |
| ~UGmodel () override | |
| Destructor. | |
| UGmodel (const UGmodel &source) | |
| Copy constructor. | |
| UGmodel (UGmodel &&source) | |
| move constructor | |
Variable manipulation methods. | |
| UndiGraph | graph () const |
| Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable. | |
| Size | size () const final |
| Returns the number of variables in this Directed Graphical Model. | |
| Size | sizeEdges () const |
| Returns the number of arcs in this Directed Graphical Model. | |
| const NodeGraphPart & | nodes () const final |
| Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable. | |
| bool | exists (NodeId node) const final |
| Return true if this node exists in this graphical model. | |
| bool | exists (std::string_view name) const final |
| Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable. | |
Edge manipulation methods. | |
| const EdgeSet & | edges () const |
| return true if the edge node1-node2 exists in the UGModel | |
| bool | existsEdge (const NodeId node1, const NodeId node2) const |
| return true if the edge node1-node2 exists in the UGModel | |
| bool | existsEdge (std::string_view name1, std::string_view name2) const |
| return true if the edge node1-node2 exists in the UGModel | |
| const NodeSet & | neighbours (const NodeId id) const |
| returns the neighbours of a node as set of nodes | |
| const NodeSet & | neighbours (std::string_view name) const |
| return true if the edge node1-node2 exists in the UGModel | |
| bool | isIndependent (NodeId X, NodeId Y, const NodeSet &Z) const final |
| check if X and Y are independent given Z | |
| bool | isIndependent (const NodeSet &X, const NodeSet &Y, const NodeSet &Z) const final |
| check if nodes X and nodes Y are independent given nodes Z | |
| bool | isIndependent (std::string_view Xname, std::string_view Yname, const std::vector< std::string > &Znames) const |
| return true if the edge node1-node2 exists in the UGModel | |
| bool | isIndependent (const std::vector< std::string > &Xnames, const std::vector< std::string > &Ynames, const std::vector< std::string > &Znames) const |
| return true if the edge node1-node2 exists in the UGModel | |
Variable accessor methods | |
| const VariableNodeMap & | variableNodeMap () const override |
| Returns a constant reference to the VariableNodeMap of this model. | |
| const DiscreteVariable & | variable (NodeId id) const override |
| Returns a constant reference over a variable given its node id. | |
| NodeId | nodeId (const DiscreteVariable &var) const override |
| Returns the NodeId of a variable. | |
| NodeId | idFromName (std::string_view name) const override |
| Returns the NodeId of a variable given its name. | |
| const DiscreteVariable & | variableFromName (std::string_view name) const override |
| Returns a constant reference over a variable given its name. | |
Getter and setters | |
| const std::string & | property (std::string_view name) const |
| Return the value of the property name of this GraphicalModel. | |
| const std::string & | propertyWithDefault (std::string_view name, const std::string &byDefault) const |
| Return the value of the property name of this GraphicalModel. | |
| void | setProperty (std::string_view name, std::string_view value) |
| Add or change a property of this GraphicalModel. | |
| std::vector< std::string > | properties () const |
| List of all the names of property in the Graphical model. | |
| bool | existsProperty (std::string_view name) const |
| check wether a property exists in this GraphicalModel | |
| void | updateMetaData () |
| update the meta data of this Graphical Model (version, creation date, last modification date) This method is called by the writers ONLY before writing the model to a file. | |
Variable manipulation methods. | |
| virtual bool | empty () const |
| Return true if this graphical model is empty. | |
| std::vector< std::string > | names (const std::vector< NodeId > &ids) const |
| transform a vector of NodeId in a vector of names | |
| std::vector< std::string > | names (const NodeSet &ids) const |
| transform a NodeSet in a vector of names | |
| std::vector< NodeId > | ids (const std::vector< std::string > &names) const |
| transform a vector of names into a vector of nodeId | |
| NodeSet | nodeset (const std::vector< std::string > &names) const |
| transform a vector of names into a NodeSet | |
| gum::VariableSet | variables (const std::vector< std::string > &l) const |
| transform a vector of names into a VariableeSet | |
| gum::VariableSet | variables (const NodeSet &ids) const |
| transform a vector of NodeId into a VariableeSet | |
| Instantiation | completeInstantiation () const |
| Get an instantiation over all the variables of the model. | |
Static Public Member Functions | |
| static std::string | spaceCplxToString (double dSize, int dim, Size usedMem) |
| send to the stream the space complexity with 3 parametrs | |
Protected Member Functions | |
| UGmodel & | operator= (const UGmodel &source) |
| Private copy operator. | |
| UGmodel & | operator= (UGmodel &&source) |
| move assignment operator | |
| void | _nameNodes_ (NodeGraphPart &g) const |
| Names every node of g using variable(id).name() for each node id in g. | |
Protected Attributes | |
| UndiGraph | graph_ |
| The DAG of this Directed Graphical Model. | |
| VariableNodeMap | varMap_ |
| Mapping between NodeIds and discrete variables. | |
Private Member Functions | |
| const HashTable< std::string, std::string > & | _properties_ () const |
| Return the properties of this Directed Graphical Model. | |
Private Attributes | |
| HashTable< std::string, std::string > | _propertiesMap_ |
| The properties of this Directed Graphical Model. | |
| gum::UGmodel::UGmodel | ( | ) |
Default constructor.
Definition at line 49 of file UGmodel.cpp.
References UGmodel().
Referenced by gum::IMarkovRandomField< GUM_SCALAR >::IMarkovRandomField(), gum::IMarkovRandomField< GUM_SCALAR >::IMarkovRandomField(), gum::IMarkovRandomField< GUM_SCALAR >::IMarkovRandomField(), UGmodel(), UGmodel(), UGmodel(), ~UGmodel(), hasSameStructure(), operator=(), and operator=().
|
override |
Destructor.
Definition at line 60 of file UGmodel.cpp.
References UGmodel().
| gum::UGmodel::UGmodel | ( | const UGmodel & | source | ) |
Copy constructor.
Do nothing.
Definition at line 51 of file UGmodel.cpp.
References gum::DiscreteGraphicalModel::DiscreteGraphicalModel(), UGmodel(), and graph_.
| gum::UGmodel::UGmodel | ( | UGmodel && | source | ) |
move constructor
Definition at line 55 of file UGmodel.cpp.
References gum::DiscreteGraphicalModel::DiscreteGraphicalModel(), UGmodel(), and graph_.
|
protectedinherited |
Names every node of g using variable(id).name() for each node id in g.
Call this before returning any newly constructed graph from a model method.
Definition at line 175 of file graphicalModel_inl.h.
References gum::NodeGraphPart::setName(), and variable().
Referenced by gum::DAGmodel::dag(), gum::UGmodel::graph(), gum::DAGmodel::moralGraph(), and gum::DAGmodel::moralizedAncestralGraph().
|
privateinherited |
Return the properties of this Directed Graphical Model.
Definition at line 67 of file graphicalModel_inl.h.
References _propertiesMap_.
Referenced by property().
|
inherited |
Get an instantiation over all the variables of the model.
Definition at line 104 of file graphicalModel_inl.h.
References nodes(), and variable().
| INLINE NodeProperty< NodeId > gum::UGmodel::connectedComponents | ( | ) | const |
Returns the connected components of the underlying undirected graph. Each node maps to the id of its component root.
Definition at line 109 of file UGmodel_inl.h.
References graph_.
| INLINE const EdgeSet & gum::UGmodel::edges | ( | ) | const |
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 73 of file UGmodel_inl.h.
References graph_.
Referenced by hasSameStructure().
|
virtualinherited |
Return true if this graphical model is empty.
Definition at line 114 of file graphicalModel_inl.h.
References size().
Referenced by gum::IBayesNet< GUM_SCALAR >::check(), and gum::BayesNet< GUM_SCALAR >::clear().
Return true if this node exists in this graphical model.
Implements gum::GraphicalModel.
Definition at line 89 of file UGmodel_inl.h.
References graph_.
Referenced by exists(), hasSameStructure(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), and gum::IMarkovRandomField< GUM_SCALAR >::smallestFactorFromNode().
|
finalvirtual |
Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable.
O(n) — allocates a new graph. For a stable reference (listeners, long-lived pointers), use internalGraph().
Implements gum::GraphicalModel.
Definition at line 91 of file UGmodel_inl.h.
References exists(), and gum::DiscreteGraphicalModel::idFromName().
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 75 of file UGmodel_inl.h.
References graph_.
Referenced by existsEdge().
| INLINE bool gum::UGmodel::existsEdge | ( | std::string_view | name1, |
| std::string_view | name2 ) const |
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 79 of file UGmodel_inl.h.
References existsEdge(), and gum::DiscreteGraphicalModel::idFromName().
|
inherited |
check wether a property exists in this GraphicalModel
Definition at line 170 of file graphicalModel_inl.h.
References _propertiesMap_.
returns the node as a NodeSet (in mixed graph : family is the node and its parents
| id | the node which is the head of an arc with the returned nodes |
| name | the name of the node the node which is the head of an arc with the returned nodes |
Implements gum::GraphicalModel.
Definition at line 113 of file UGmodel_inl.h.
Referenced by family().
|
finalvirtual |
Implements gum::GraphicalModel.
Definition at line 119 of file UGmodel_inl.h.
References family(), and gum::DiscreteGraphicalModel::idFromName().
|
nodiscard |
Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable.
O(n) — allocates a new graph. For a stable reference (listeners, long-lived pointers), use internalGraph().
Definition at line 61 of file UGmodel_inl.h.
References gum::GraphicalModel::_nameNodes_(), and graph_.
Referenced by gum::MarginalTargetedMRFInference< GUM_SCALAR >::MarginalTargetedMRFInference(), and gum::IMarkovRandomField< GUM_SCALAR >::toString().
check if nodes X and nodes Y are independent given nodes Z
Definition at line 82 of file UGmodel.cpp.
References UGmodel(), edges(), gum::Set< Key >::exists(), exists(), gum::DiscreteGraphicalModel::idFromName(), nodes(), size(), sizeEdges(), and gum::DiscreteGraphicalModel::variable().
|
overridevirtualinherited |
Returns the NodeId of a variable given its name.
| NotFound | if no such name exists in the model. |
Implements gum::GraphicalModel.
Reimplemented in gum::InfluenceDiagram< GUM_SCALAR >, and gum::prm::InstanceBayesNet< GUM_SCALAR >.
Definition at line 61 of file discreteGraphicalModel_inl.h.
References varMap_.
Referenced by gum::ASTposteriorProba< GUM_SCALAR >::_compute_knw_from_bn(), gum::DAGmodel::ancestors(), gum::InfluenceDiagram< GUM_SCALAR >::clear(), gum::ASTjointProba< GUM_SCALAR >::eval(), gum::ASTposteriorProba< GUM_SCALAR >::eval(), gum::ASTsum< GUM_SCALAR >::eval(), gum::UGmodel::exists(), gum::DAGmodel::existsArc(), gum::UGmodel::existsEdge(), gum::DAGmodel::family(), gum::UGmodel::family(), gum::DAGmodel::hasSameStructure(), gum::MarkovBlanket::hasSameStructure(), gum::UGmodel::hasSameStructure(), gum::DAGmodel::isIndependent(), gum::UGmodel::isIndependent(), gum::DAGmodel::minimalCondSet(), gum::UGmodel::neighbours(), gum::IBayesNet< GUM_SCALAR >::operator==(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), gum::DAGmodel::parents(), and gum::IMarkovRandomField< GUM_SCALAR >::smallestFactorFromNode().
|
inherited |
transform a vector of names into a vector of nodeId
Definition at line 139 of file graphicalModel_inl.h.
References names(), and variableNodeMap().
Referenced by gum::DAGmodel::children(), exists(), names(), names(), and gum::DAGmodel::parents().
| INLINE const UndiGraph & gum::UGmodel::internalGraph | ( | ) | const |
Returns a const reference to the internal (unnamed) graph. O(1), no copy. Use for stable references or pointers (graph listeners). For named node access, use graph() instead.
Definition at line 58 of file UGmodel_inl.h.
References graph_.
|
finalvirtual |
check if nodes X and nodes Y are independent given nodes Z
Implements gum::GraphicalModel.
Definition at line 105 of file UGmodel_inl.h.
References graph_.
| INLINE bool gum::UGmodel::isIndependent | ( | const std::vector< std::string > & | Xnames, |
| const std::vector< std::string > & | Ynames, | ||
| const std::vector< std::string > & | Znames ) const |
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 127 of file UGmodel_inl.h.
References isIndependent(), and gum::GraphicalModel::nodeset().
|
finalvirtual |
check if X and Y are independent given Z
Implements gum::GraphicalModel.
Definition at line 101 of file UGmodel_inl.h.
References graph_.
Referenced by isIndependent(), and isIndependent().
| INLINE bool gum::UGmodel::isIndependent | ( | std::string_view | Xname, |
| std::string_view | Yname, | ||
| const std::vector< std::string > & | Znames ) const |
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 121 of file UGmodel_inl.h.
References gum::DiscreteGraphicalModel::idFromName(), isIndependent(), and gum::GraphicalModel::nodeset().
|
inherited |
Definition at line 93 of file graphicalModel_inl.h.
References nodes().
Referenced by gum::IMarkovRandomField< GUM_SCALAR >::toString(), and gum::InfluenceDiagram< GUM_SCALAR >::toString().
|
inherited |
transform a NodeSet in a vector of names
Definition at line 129 of file graphicalModel_inl.h.
References ids(), gum::VariableNodeMap::name(), and variableNodeMap().
|
inherited |
transform a vector of NodeId in a vector of names
Definition at line 117 of file graphicalModel_inl.h.
References ids().
Referenced by gum::DAGmodel::children(), exists(), ids(), nodeset(), and gum::DAGmodel::parents().
returns the neighbours of a node as set of nodes
Note that the set of nodes returned may be empty if no edge within the EdgeGraphPart contains the given node.
| id | the node toward which the edge returned are pointing |
Definition at line 83 of file UGmodel_inl.h.
References graph_.
Referenced by neighbours(), and gum::IMarkovRandomField< GUM_SCALAR >::toDot().
| INLINE const NodeSet & gum::UGmodel::neighbours | ( | std::string_view | name | ) | const |
return true if the edge node1-node2 exists in the UGModel
| node1 | the nodeId (or the name) of the node1 |
| node2 | the nodeId (or the name) of the node2 |
Definition at line 85 of file UGmodel_inl.h.
References gum::DiscreteGraphicalModel::idFromName(), and neighbours().
|
overridevirtualinherited |
Returns the NodeId of a variable.
| NotFound | if no variable matches var. |
Implements gum::GraphicalModel.
Reimplemented in gum::InfluenceDiagram< GUM_SCALAR >, and gum::prm::InstanceBayesNet< GUM_SCALAR >.
Definition at line 56 of file discreteGraphicalModel_inl.h.
References varMap_.
Referenced by gum::InfluenceDiagram< GUM_SCALAR >::clear(), gum::BayesBall::relevantTensors(), and gum::dSeparationAlgorithm::relevantTensors().
|
finalvirtual |
Returns a named copy of the internal undirected graph: each node id is assigned the name of the corresponding variable.
O(n) — allocates a new graph. For a stable reference (listeners, long-lived pointers), use internalGraph().
Implements gum::GraphicalModel.
Definition at line 97 of file UGmodel_inl.h.
References graph_.
Referenced by hasSameStructure(), gum::IMarkovRandomField< GUM_SCALAR >::maxVarDomainSize(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), gum::IMarkovRandomField< GUM_SCALAR >::toDot(), and gum::IMarkovRandomField< GUM_SCALAR >::toDotAsFactorGraph().
|
inherited |
transform a vector of names into a NodeSet
Definition at line 102 of file graphicalModel.cpp.
References idFromName(), gum::Set< Key >::insert(), and names().
Referenced by gum::BayesNet< double >::ancestors(), gum::DAGmodel::children(), gum::DAGmodel::isIndependent(), gum::UGmodel::isIndependent(), gum::UGmodel::isIndependent(), gum::DAGmodel::minimalCondSet(), and gum::DAGmodel::moralizedAncestralGraph().
Private copy operator.
Definition at line 62 of file UGmodel.cpp.
References UGmodel(), graph_, and gum::DiscreteGraphicalModel::operator=().
Referenced by gum::IMarkovRandomField< GUM_SCALAR >::operator=().
move assignment operator
Definition at line 72 of file UGmodel.cpp.
References UGmodel(), graph_, and gum::DiscreteGraphicalModel::operator=().
|
inherited |
List of all the names of property in the Graphical model.
Definition at line 79 of file graphicalModel_inl.h.
References _propertiesMap_.
|
inherited |
Return the value of the property name of this GraphicalModel.
| NotFound | Raised if no name property is found. |
Definition at line 60 of file graphicalModel_inl.h.
References _properties_(), GUM_ERROR, and gum::HashTable< Key, Val >::tryGet().
|
inherited |
Return the value of the property name of this GraphicalModel.
return byDefault if the property name is not found
Definition at line 72 of file graphicalModel_inl.h.
References _propertiesMap_.
Referenced by gum::IBayesNet< GUM_SCALAR >::toDot(), gum::IMarkovRandomField< GUM_SCALAR >::toDot(), gum::InfluenceDiagram< GUM_SCALAR >::toDot(), and gum::IMarkovRandomField< GUM_SCALAR >::toDotAsFactorGraph().
|
inherited |
Add or change a property of this GraphicalModel.
Definition at line 87 of file graphicalModel_inl.h.
References _propertiesMap_.
Referenced by gum::IBayesNet< GUM_SCALAR >::IBayesNet(), gum::IMarkovRandomField< GUM_SCALAR >::IMarkovRandomField(), and gum::InfluenceDiagram< GUM_SCALAR >::fastPrototype().
|
finalvirtual |
Returns the number of variables in this Directed Graphical Model.
Implements gum::GraphicalModel.
Definition at line 68 of file UGmodel_inl.h.
References graph_.
Referenced by hasSameStructure(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), gum::IMarkovRandomField< GUM_SCALAR >::toDot(), and gum::IMarkovRandomField< GUM_SCALAR >::toString().
| INLINE Size gum::UGmodel::sizeEdges | ( | ) | const |
Returns the number of arcs in this Directed Graphical Model.
Definition at line 71 of file UGmodel_inl.h.
References graph_.
Referenced by hasSameStructure(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), and gum::IMarkovRandomField< GUM_SCALAR >::toString().
|
staticinherited |
send to the stream the space complexity with 3 parametrs
| s | the stream |
| dSize | the log10domainSize |
| dim | the dimension |
| usedMem | the memory needed for the params |
Definition at line 110 of file graphicalModel.cpp.
|
inherited |
update the meta data of this Graphical Model (version, creation date, last modification date) This method is called by the writers ONLY before writing the model to a file.
Definition at line 81 of file graphicalModel.cpp.
References _propertiesMap_.
|
overridevirtualinherited |
Returns a constant reference over a variable given its node id.
| NotFound | if no variable's id matches id. |
Implements gum::GraphicalModel.
Reimplemented in gum::InfluenceDiagram< GUM_SCALAR >, and gum::prm::InstanceBayesNet< GUM_SCALAR >.
Definition at line 51 of file discreteGraphicalModel_inl.h.
References varMap_.
Referenced by gum::Estimator< GUM_SCALAR >::Estimator(), gum::ASTposteriorProba< GUM_SCALAR >::_compute_knw_from_bn(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_insertEvidence_(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_verticesSampling_(), gum::IBayesNet< GUM_SCALAR >::check(), gum::InfluenceDiagram< GUM_SCALAR >::clear(), gum::IBayesNet< GUM_SCALAR >::dim(), gum::ASTsum< GUM_SCALAR >::eval(), gum::DAGmodel::hasSameStructure(), gum::UGmodel::hasSameStructure(), gum::IBayesNet< GUM_SCALAR >::maxVarDomainSize(), gum::IMarkovRandomField< GUM_SCALAR >::maxVarDomainSize(), gum::IBayesNet< GUM_SCALAR >::operator==(), gum::IMarkovRandomField< GUM_SCALAR >::operator==(), gum::Estimator< GUM_SCALAR >::setFromBN(), gum::IMarkovRandomField< GUM_SCALAR >::toDot(), and gum::IMarkovRandomField< GUM_SCALAR >::toDotAsFactorGraph().
|
overridevirtualinherited |
Returns a constant reference over a variable given its name.
| NotFound | if no such name exists in the model. |
Implements gum::GraphicalModel.
Reimplemented in gum::InfluenceDiagram< GUM_SCALAR >, and gum::prm::InstanceBayesNet< GUM_SCALAR >.
Definition at line 66 of file discreteGraphicalModel_inl.h.
References varMap_.
Referenced by gum::InfluenceDiagram< GUM_SCALAR >::clear(), gum::IBayesNet< GUM_SCALAR >::evEq(), gum::IBayesNet< GUM_SCALAR >::evGt(), gum::IBayesNet< GUM_SCALAR >::evIn(), gum::IBayesNet< GUM_SCALAR >::evLt(), gum::IBayesNet< GUM_SCALAR >::operator==(), and gum::IMarkovRandomField< GUM_SCALAR >::operator==().
|
overridevirtualinherited |
Returns a constant reference to the VariableNodeMap of this model.
Implements gum::GraphicalModel.
Reimplemented in gum::InfluenceDiagram< GUM_SCALAR >, and gum::prm::InstanceBayesNet< GUM_SCALAR >.
Definition at line 48 of file discreteGraphicalModel_inl.h.
References varMap_.
Referenced by gum::InfluenceDiagram< GUM_SCALAR >::clear().
|
inherited |
transform a vector of NodeId into a VariableeSet
Definition at line 160 of file graphicalModel_inl.h.
|
inherited |
transform a vector of names into a VariableeSet
Definition at line 150 of file graphicalModel_inl.h.
References gum::Set< Key >::insert(), gum::VariableNodeMap::variableFromName(), and variableNodeMap().
|
privateinherited |
The properties of this Directed Graphical Model.
Definition at line 262 of file graphicalModel.h.
Referenced by GraphicalModel(), GraphicalModel(), _properties_(), existsProperty(), operator=(), operator=(), properties(), propertyWithDefault(), setProperty(), and updateMetaData().
|
protected |
The DAG of this Directed Graphical Model.
Definition at line 195 of file UGmodel.h.
Referenced by UGmodel(), UGmodel(), gum::IMarkovRandomField< GUM_SCALAR >::_minimalCondSetVisit_(), connectedComponents(), edges(), exists(), existsEdge(), graph(), internalGraph(), isIndependent(), isIndependent(), gum::IMarkovRandomField< GUM_SCALAR >::minimalCondSet(), neighbours(), nodes(), operator=(), operator=(), size(), and sizeEdges().
|
protectedinherited |
Mapping between NodeIds and discrete variables.
Definition at line 119 of file discreteGraphicalModel.h.
Referenced by DiscreteGraphicalModel(), DiscreteGraphicalModel(), gum::BayesNet< GUM_SCALAR >::add(), gum::InfluenceDiagram< GUM_SCALAR >::addNode_(), gum::BayesNet< GUM_SCALAR >::changeVariableName(), gum::InfluenceDiagram< GUM_SCALAR >::changeVariableName(), gum::BayesNet< GUM_SCALAR >::erase(), gum::BayesNet< GUM_SCALAR >::erase(), gum::InfluenceDiagram< GUM_SCALAR >::erase(), gum::InfluenceDiagram< GUM_SCALAR >::erase(), gum::BayesNet< GUM_SCALAR >::eraseArc(), idFromName(), nodeId(), operator=(), operator=(), gum::BayesNet< GUM_SCALAR >::reverseArc(), variable(), variableFromName(), and variableNodeMap().