![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Portion of a BN identified by the list of nodes and a BayesNet. More...
#include <agrum/BN/BayesNetFragment.h>
Public Member Functions | |
| gum::BayesNet< GUM_SCALAR > | toBN () const |
| create a brand new BayesNet from a fragment. | |
| std::vector< std::string > | check () const |
| Check if the BayesNet is consistent (variables, CPT). | |
| bool | operator== (const IBayesNet< GUM_SCALAR > &from) const |
| This operator compares 2 BNs ! | |
| bool | operator!= (const IBayesNet< GUM_SCALAR > &from) const |
| Size | dim () const |
| Returns the dimension (the number of free parameters) in this bayes net. | |
| Size | maxVarDomainSize () const |
| GUM_SCALAR | minParam () const |
| GUM_SCALAR | maxParam () const |
| GUM_SCALAR | minNonZeroParam () const |
| GUM_SCALAR | maxNonOneParam () const |
| std::string | toString () const |
| Tensor< GUM_SCALAR > | evEq (const std::string &name, double value) const |
| Tensor< GUM_SCALAR > | evIn (const std::string &name, double val1, double val2) const |
| Tensor< GUM_SCALAR > | evLt (const std::string &name, double value) const |
| Tensor< GUM_SCALAR > | evGt (const std::string &name, double value) const |
| Size | memoryFootprint () const |
| compute the (approximated) footprint in memory of the model (the footprints of CPTs) | |
| bool | hasSameStructure (const DAGmodel &other) |
| NodeSet | minimalCondSet (NodeId target, const NodeSet &soids) const |
| NodeSet | minimalCondSet (const NodeSet &targets, const NodeSet &soids) const |
| NodeSet | minimalCondSet (const std::string &target, const std::vector< std::string > &soids) const |
| NodeSet | minimalCondSet (const std::vector< std::string > &targets, const std::vector< std::string > &soids) const |
| double | log10DomainSize () const |
| void | _attachSignal_ (__sig__::ISignaler *sender) |
| void | _detachSignal_ (__sig__::ISignaler *sender) |
Constructors / Destructors | |
| BayesNetFragment ()=delete | |
| BayesNetFragment (const BayesNetFragment< GUM_SCALAR > &fragment)=delete | |
| BayesNetFragment (BayesNetFragment< GUM_SCALAR > &&fragment)=delete | |
| BayesNetFragment (const IBayesNet< GUM_SCALAR > &bn) | |
| virtual | ~BayesNetFragment () |
signals | |
| virtual void | whenNodeAdded (const void *src, NodeId id) final |
| the action to take when a new node is inserted into the graph | |
| virtual void | whenNodeDeleted (const void *src, NodeId id) final |
| the action to take when a node has just been removed from the graph | |
| virtual void | whenArcAdded (const void *src, NodeId from, NodeId to) final |
| the action to take when a new arc is inserted into the graph | |
| virtual void | whenArcDeleted (const void *src, NodeId from, NodeId to) final |
| the action to take when an arc has just been removed from the graph | |
IBayesNet interface | |
| const Tensor< GUM_SCALAR > & | cpt (NodeId varId) const final |
| Returns the CPT of a variable. | |
| const Tensor< GUM_SCALAR > & | cpt (const std::string &name) const |
| Returns the CPT of a variable. | |
| const VariableNodeMap & | variableNodeMap () const final |
| Returns a constant reference to the VariableNodeMap of this BN. | |
| virtual const DiscreteVariable & | variable (NodeId id) const final |
| Returns a constant reference over a variabe given it's node id. | |
| virtual const DiscreteVariable & | variable (const std::string &name) const final |
| Returns the CPT of a variable. | |
| virtual NodeId | nodeId (const DiscreteVariable &var) const final |
| Return id node from discrete var pointer. | |
| virtual NodeId | idFromName (const std::string &name) const final |
| Getter by name. | |
| virtual const DiscreteVariable & | variableFromName (const std::string &name) const final |
| Getter by name. | |
| virtual std::string | toDot () const final |
| creates a dot representing the whole referred BN hilighting the fragment. | |
API for Fragment | |
| bool | isInstalledNode (NodeId id) const |
| check if a certain NodeId exists in the fragment | |
| bool | isInstalledNode (const std::string &name) const |
| check if a certain NodeId exists in the fragment | |
| void | installNode (NodeId id) |
| install a node referenced by its nodeId | |
| void | installNode (const std::string &name) |
| check if a certain NodeId exists in the fragment | |
| void | installAscendants (NodeId id) |
| install a node and all its ascendants | |
| void | installAscendants (const std::string &name) |
| check if a certain NodeId exists in the fragment | |
| void | uninstallNode (NodeId id) |
| uninstall a node referenced by its nodeId | |
| void | uninstallNode (const std::string &name) |
| check if a certain NodeId exists in the fragment | |
| void | installMarginal (NodeId id, const Tensor< GUM_SCALAR > &pot) |
| install a local marginal BY COPY for a node into the fragment. | |
| void | installMarginal (const std::string &name, const Tensor< GUM_SCALAR > &pot) |
| check if a certain NodeId exists in the fragment | |
| void | installCPT (NodeId id, const Tensor< GUM_SCALAR > &pot) |
| install a local cpt BY COPYfor a node into the fragment. | |
| void | installCPT (const std::string &name, const Tensor< GUM_SCALAR > &pot) |
| check if a certain NodeId exists in the fragment | |
| void | uninstallCPT (NodeId id) |
| uninstall a local CPT. | |
| void | uninstallCPT (const std::string &name) |
| check if a certain NodeId exists in the fragment | |
| bool | checkConsistency (NodeId id) const |
| returns true if the nodeId's (local or not) cpt is consistent with its parents in the fragment | |
| bool | checkConsistency (const std::string &name) const |
| check if a certain NodeId exists in the fragment | |
| bool | checkConsistency () const |
| returns true if all nodes in the fragment are consistent | |
Joint Probability manipulation methods | |
| GUM_SCALAR | jointProbability (const Instantiation &i) const |
| Compute a parameter of the joint probability for the BN (given an instantiation of the vars). | |
| GUM_SCALAR | log2JointProbability (const Instantiation &i) const |
| Compute a parameter of the log joint probability for the BN (given an instantiation of the vars). | |
Variable manipulation methods. | |
| const DAG & | dag () const |
| Returns a constant reference to the dag of this Bayes Net. | |
| virtual Size | size () const final |
| Returns the number of variables in this Directed Graphical Model. | |
| Size | sizeArcs () const |
| Returns the number of arcs in this Directed Graphical Model. | |
| const NodeGraphPart & | nodes () const final |
| Returns a constant reference to the dag of this Bayes Net. | |
| bool | exists (NodeId node) const final |
| Return true if this node exists in this graphical model. | |
| bool | exists (const std::string &name) const final |
| Returns a constant reference to the dag of this Bayes Net. | |
Arc manipulation methods. | |
| const ArcSet & | arcs () const |
| return true if the arc tail->head exists in the DAGmodel | |
| bool | existsArc (const NodeId tail, const NodeId head) const |
| return true if the arc tail->head exists in the DAGmodel | |
| bool | existsArc (const std::string &nametail, const std::string &namehead) const |
| return true if the arc tail->head exists in the DAGmodel | |
| const NodeSet & | parents (const NodeId id) const |
| returns the set of nodes with arc ingoing to a given node | |
| const NodeSet & | parents (const std::string &name) const |
| return true if the arc tail->head exists in the DAGmodel | |
| NodeSet | parents (const NodeSet &ids) const |
| returns the parents of a set of nodes | |
| NodeSet | parents (const std::vector< std::string > &names) const |
| return true if the arc tail->head exists in the DAGmodel | |
| NodeSet | family (const NodeId id) const final |
| returns the parents of a node and the node | |
| NodeSet | family (const std::string &name) const final |
| return true if the arc tail->head exists in the DAGmodel | |
| const NodeSet & | children (const NodeId id) const |
| returns the set of nodes with arc outgoing from a given node | |
| const NodeSet & | children (const std::string &name) const |
| return true if the arc tail->head exists in the DAGmodel | |
| NodeSet | children (const NodeSet &ids) const |
| returns the children of a set of nodes | |
| NodeSet | children (const std::vector< std::string > &names) const |
| return true if the arc tail->head exists in the DAGmodel | |
| NodeSet | descendants (const NodeId id) const |
| returns the set of nodes with directed path outgoing from a given node | |
| NodeSet | descendants (const std::string &name) const |
| return true if the arc tail->head exists in the DAGmodel | |
| NodeSet | ancestors (const NodeId id) const |
| returns the set of nodes with directed path ingoing to a given node | |
| NodeSet | ancestors (const std::string &name) const |
| return true if the arc tail->head exists in the DAGmodel | |
Graphical methods | |
| UndiGraph | moralizedAncestralGraph (const NodeSet &nodes) const |
| build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes | |
| UndiGraph | moralizedAncestralGraph (const std::vector< std::string > &nodenames) const |
| build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes | |
| bool | isIndependent (NodeId X, NodeId Y, const NodeSet &Z) const final |
| check if node X and node Y are independent given nodes 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 (const std::string &Xname, const std::string &Yname, const std::vector< std::string > &Znames) const |
| build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes | |
| bool | isIndependent (const std::vector< std::string > &Xnames, const std::vector< std::string > &Ynames, const std::vector< std::string > &Znames) const |
| build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes | |
| UndiGraph | moralGraph () const |
| The node's id are coherent with the variables and nodes of the topology. | |
| Sequence< NodeId > | topologicalOrder () const |
| The topological order stays the same as long as no variable or arcs are added or erased src the topology. | |
Getter and setters | |
| const std::string & | property (const std::string &name) const |
| Return the value of the property name of this GraphicalModel. | |
| const std::string & | propertyWithDefault (const std::string &name, const std::string &byDefault) const |
| Return the value of the property name of this GraphicalModel. | |
| void | setProperty (const std::string &name, const std::string &value) |
| Add or change a property of this GraphicalModel. | |
| std::vector< std::string > | properties () const |
| List of all the properties. | |
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 void | spaceCplxToStream (std::stringstream &s, double dSize, int dim, Size usedMem) |
| send to the stream the space complexity with 3 parametrs | |
Protected Member Functions | |
| void | uninstallArc_ (NodeId from, NodeId to) |
| void | installArc_ (NodeId from, NodeId to) |
| void | installCPT_ (NodeId id, const Tensor< GUM_SCALAR > &pot) |
| void | uninstallCPT_ (NodeId id) |
| uninstall a local CPT. | |
Protected Attributes | |
| DAG | dag_ |
| The DAG of this Directed Graphical Model. | |
| DiGraph * | graph_ |
| the graph to listen to | |
Private Types | |
| using | Senders_list = std::vector< __sig__::ISignaler* > |
| Alias for the list of signal senders. | |
Private Member Functions | |
| const HashTable< std::string, std::string > & | _properties_ () const |
| Return the properties of this Directed Graphical Model. | |
Private Attributes | |
| const IBayesNet< GUM_SCALAR > & | _bn_ |
| The referred BayesNet. | |
| NodeProperty< const Tensor< GUM_SCALAR > * > | _localCPTs_ |
| Mapping between the variable's id and their CPT specific to this Fragment. | |
| HashTable< std::string, std::string > | _propertiesMap_ |
| The properties of this Directed Graphical Model. | |
| Senders_list | _senders_ |
Portion of a BN identified by the list of nodes and a BayesNet.
This class is a decorator of a BayesNet implementing the IBayesNet interface. CPTs can be shared with the BN or can be specific to the Fragment if different.
BayesNetFragment is a DiGraphListener in order to be synchronized (especially when removing nodes or arcs).
In a BayesNetFragment, one can install or remove nodes. An arc can be in the fragment if and only if its head and tail are installed in the fragment. *When installing a node, all the arcs that can be added in the fragment are *effectively installed (resp. *when uninstalling a node, etc.).
A BayesNetFragment can redefine tensor for node. The main reason is to be able to install a node without installing all its parents (and its ascendants). So local CPT to the node can be installed. However, it is not done automatically.
If a cpt is not locally defined, the fragment uses the cpt defined in the referred BN. The checkConsistency() method verifies that, for all installed nodes, either all the parents are installed or a local CPT is defined.
Definition at line 90 of file BayesNetFragment.h.
|
privateinherited |
Alias for the list of signal senders.
Definition at line 96 of file listener.h.
|
delete |
Referenced by BayesNetFragment(), BayesNetFragment(), BayesNetFragment(), and ~BayesNetFragment().
|
delete |
|
delete |
References BayesNetFragment(), and gum::IBayesNet< GUM_SCALAR >::IBayesNet().
|
explicit |
Definition at line 55 of file BayesNetFragment_tpl.h.
References BayesNetFragment(), gum::DiGraphListener::DiGraphListener(), gum::IBayesNet< GUM_SCALAR >::IBayesNet(), _bn_, and gum::DAGmodel::dag().
|
virtual |
Definition at line 61 of file BayesNetFragment_tpl.h.
References BayesNetFragment(), _localCPTs_, gum::DAGmodel::nodes(), and uninstallCPT_().
|
inherited |
Definition at line 56 of file listener_inl.h.
References _senders_.
|
inherited |
|
privateinherited |
Return the properties of this Directed Graphical Model.
Definition at line 70 of file graphicalModel_inl.h.
References _propertiesMap_.
Referenced by property().
returns the set of nodes with directed path ingoing to a given node
Note that the set of nodes returned may be empty if no path within the ArcGraphPart is ingoing to the given node.
| id | the node which is the head of a directed path with the returned nodes |
| name | the name of the node which is the head of a directed path with the returned nodes |
Definition at line 123 of file DAGmodel_inl.h.
References gum::ArcGraphPart::ancestors(), and dag().
Referenced by ancestors().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 125 of file DAGmodel_inl.h.
References ancestors(), and gum::GraphicalModel::idFromName().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 65 of file DAGmodel_inl.h.
References dag_.
Referenced by hasSameStructure(), gum::MarkovBlanket::hasSameStructure(), and gum::BayesNetFragment< GUM_SCALAR >::toBN().
|
inherited |
Check if the BayesNet is consistent (variables, CPT).
Definition at line 314 of file IBayesNet_tpl.h.
References cpt(), gum::GraphicalModel::empty(), gum::DAGmodel::nodes(), gum::DAGmodel::parents(), and variable().
| INLINE bool gum::BayesNetFragment< GUM_SCALAR >::checkConsistency | ( | ) | const |
returns true if all nodes in the fragment are consistent
| gum::OperatioNotAllowed | if the fragment is not consistent. |
Definition at line 295 of file BayesNetFragment_tpl.h.
References checkConsistency(), and gum::DAGmodel::nodes().
Referenced by checkConsistency().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 289 of file BayesNetFragment.h.
References checkConsistency(), and idFromName().
| bool gum::BayesNetFragment< GUM_SCALAR >::checkConsistency | ( | NodeId | id | ) | const |
returns true if the nodeId's (local or not) cpt is consistent with its parents in the fragment
| NotFound | if the id is not in the fragment |
Definition at line 280 of file BayesNetFragment_tpl.h.
References _bn_, cpt(), GUM_ERROR, gum::Set< Key >::insert(), isInstalledNode(), and gum::DAGmodel::parents().
Referenced by checkConsistency(), toBN(), and toDot().
returns the set of nodes with arc outgoing from a given node
Note that the set of nodes returned may be empty if no node is outgoing from the given node.
| id | the node which is the tail of an arc with the returned nodes |
| name | the name of the node which is the tail of an arc with the returned nodes |
Definition at line 87 of file DAGmodel_inl.h.
References dag_.
Referenced by gum::BayesNet< GUM_SCALAR >::erase(), gum::prm::ClassBayesNet< GUM_SCALAR >::toDot(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::toDot().
returns the children of a set of nodes
Definition at line 93 of file DAGmodel_inl.h.
References dag_, and gum::GraphicalModel::ids().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 89 of file DAGmodel_inl.h.
References dag_, and gum::GraphicalModel::idFromName().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 95 of file DAGmodel_inl.h.
References gum::GraphicalModel::names().
|
inherited |
Get an instantiation over all the variables of the model.
Definition at line 106 of file graphicalModel_inl.h.
References nodes().
|
inline |
Returns the CPT of a variable.
| NotFound | If no variable's id matches varId. |
Definition at line 146 of file BayesNetFragment.h.
References cpt(), and idFromName().
|
finalvirtual |
Returns the CPT of a variable.
| NotFound | If no variable's id matches varId. |
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 96 of file BayesNetFragment_tpl.h.
References _bn_, _localCPTs_, GUM_ERROR, and isInstalledNode().
Referenced by checkConsistency(), cpt(), toBN(), uninstallCPT(), and gum::ImportanceSampling< GUM_SCALAR >::unsharpenBN_().
|
inherited |
Returns a constant reference to the dag of this Bayes Net.
Definition at line 57 of file DAGmodel_inl.h.
References dag_.
Referenced by gum::BayesNetFragment< GUM_SCALAR >::BayesNetFragment(), gum::MarginalTargetedInference< GUM_SCALAR >::MarginalTargetedInference(), gum::BayesNet< GUM_SCALAR >::add(), ancestors(), gum::IBayesNet< double >::arcs(), descendants(), gum::BayesNetFragment< GUM_SCALAR >::installCPT(), isIndependent(), isIndependent(), gum::BayesNetFragment< GUM_SCALAR >::isInstalledNode(), moralGraph(), moralizedAncestralGraph(), gum::BayesBall::relevantTensors(), gum::dSeparationAlgorithm::relevantTensors(), gum::BayesNet< GUM_SCALAR >::reverseArc(), size(), gum::BayesNetFragment< GUM_SCALAR >::toBN(), gum::BayesNetFragment< GUM_SCALAR >::toDot(), gum::IBayesNet< GUM_SCALAR >::toString(), gum::InfluenceDiagram< GUM_SCALAR >::toString(), and gum::BayesNetFragment< GUM_SCALAR >::whenArcDeleted().
returns the set of nodes with directed path outgoing from a given node
Note that the set of nodes returned may be empty if no path within the ArcGraphPart is outgoing from the given node.
| id | the node which is the tail of a directed path with the returned nodes |
| name | the name of the node which is the tail of a directed path with the returned nodes |
Definition at line 117 of file DAGmodel_inl.h.
References dag(), and gum::ArcGraphPart::descendants().
Referenced by descendants().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 119 of file DAGmodel_inl.h.
References descendants(), and gum::GraphicalModel::idFromName().
|
inherited |
Returns the dimension (the number of free parameters) in this bayes net.
\( dim(G)=\sum_{i \in nodes} ((r_i-1)\cdot q_i) \) where \( r_i \) is the number of instantiations of node \( i \) and \( q_i \) is the number of instantiations of its parents.
Definition at line 95 of file IBayesNet_tpl.h.
References dim(), and gum::DAGmodel::nodes().
Referenced by dim(), and toString().
|
virtualinherited |
Return true if this graphical model is empty.
Definition at line 116 of file graphicalModel_inl.h.
References size().
Referenced by gum::IBayesNet< GUM_SCALAR >::check(), and gum::BayesNet< GUM_SCALAR >::clear().
|
inherited |
Definition at line 378 of file IBayesNet_tpl.h.
References gum::Tensor< GUM_SCALAR >::evEq(), and variableFromName().
|
inherited |
Definition at line 389 of file IBayesNet_tpl.h.
References gum::Tensor< GUM_SCALAR >::evGt(), and variableFromName().
|
inherited |
Definition at line 384 of file IBayesNet_tpl.h.
References gum::Tensor< GUM_SCALAR >::evIn(), and variableFromName().
|
inherited |
Definition at line 394 of file IBayesNet_tpl.h.
References gum::Tensor< GUM_SCALAR >::evLt(), and variableFromName().
|
finalvirtualinherited |
Returns a constant reference to the dag of this Bayes Net.
Implements gum::GraphicalModel.
Definition at line 107 of file DAGmodel_inl.h.
Return true if this node exists in this graphical model.
Implements gum::GraphicalModel.
Definition at line 105 of file DAGmodel_inl.h.
References dag_.
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 67 of file DAGmodel_inl.h.
References dag_.
Referenced by existsArc(), gum::BayesNet< GUM_SCALAR >::reverseArc(), gum::BayesNetFragment< GUM_SCALAR >::toDot(), and gum::BayesNetFragment< GUM_SCALAR >::whenArcDeleted().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 71 of file DAGmodel_inl.h.
References existsArc(), and gum::GraphicalModel::idFromName().
returns the parents of a node and the node
| 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 81 of file DAGmodel_inl.h.
References dag_.
|
finalvirtualinherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Implements gum::GraphicalModel.
Definition at line 83 of file DAGmodel_inl.h.
References dag_, and gum::GraphicalModel::idFromName().
Definition at line 66 of file DAGmodel.cpp.
References DAGmodel(), arcs(), gum::Set< Key >::exists(), gum::GraphicalModel::idFromName(), nodes(), size(), sizeArcs(), and gum::GraphicalModel::variable().
|
finalvirtual |
Getter by name.
| NotFound | if no such name exists in the graph. |
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 125 of file BayesNetFragment_tpl.h.
References _bn_, GUM_ERROR, and isInstalledNode().
Referenced by checkConsistency(), cpt(), isInstalledNode(), uninstallCPT(), uninstallNode(), variable(), and variableFromName().
|
inherited |
transform a vector of names into a vector of nodeId
Definition at line 139 of file graphicalModel_inl.h.
References names().
Referenced by gum::DAGmodel::children(), exists(), names(), and gum::DAGmodel::parents().
|
protected |
Definition at line 192 of file BayesNetFragment_tpl.h.
References gum::DAGmodel::dag_.
Referenced by installCPT_(), and uninstallCPT().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 225 of file BayesNetFragment.h.
References _bn_, and installAscendants().
Referenced by installAscendants().
| INLINE void gum::BayesNetFragment< GUM_SCALAR >::installAscendants | ( | NodeId | id | ) |
install a node and all its ascendants
| NotFound | if the node does not exist in the referred BN |
Definition at line 170 of file BayesNetFragment_tpl.h.
References _bn_, installAscendants(), and installNode().
Referenced by installAscendants().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 266 of file BayesNetFragment.h.
References _bn_, and installCPT().
| void gum::BayesNetFragment< GUM_SCALAR >::installCPT | ( | NodeId | id, |
| const Tensor< GUM_SCALAR > & | pot ) |
install a local cpt BY COPYfor a node into the fragment.
This function will change the arcs from the parents to the node in order to be consistent with the new local tensor.
| id | the nodeId |
| pot | the tensor to be copied |
| NotFound | if the id is not in the fragment |
| OperationNotAllowed | if the tensor is not compliant with the variable or if a variable in the CPT is not a parent in the referred bn. |
Definition at line 217 of file BayesNetFragment_tpl.h.
References _bn_, gum::DAGmodel::dag(), GUM_ERROR, installCPT_(), gum::DAGmodel::parents(), and variable().
Referenced by installCPT(), gum::ImportanceSampling< GUM_SCALAR >::onContextualize_(), and gum::ImportanceSampling< GUM_SCALAR >::unsharpenBN_().
|
protected |
Definition at line 197 of file BayesNetFragment_tpl.h.
References _bn_, _localCPTs_, installArc_(), isInstalledNode(), gum::DAGmodel::parents(), uninstallArc_(), and uninstallCPT_().
Referenced by installCPT(), and installMarginal().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 248 of file BayesNetFragment.h.
References _bn_, and installMarginal().
| void gum::BayesNetFragment< GUM_SCALAR >::installMarginal | ( | NodeId | id, |
| const Tensor< GUM_SCALAR > & | pot ) |
install a local marginal BY COPY for a node into the fragment.
This function will remove all the arcs from the parents to the node.
| id | the nodeId |
| pot | the tensor |
| NotFound | if the id is not in the fragment |
| OperationNotAllowed | if the tensor is not compliant with the variable (or is not a marginal) |
Definition at line 261 of file BayesNetFragment_tpl.h.
References _bn_, GUM_ERROR, installCPT_(), and isInstalledNode().
Referenced by installMarginal().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 215 of file BayesNetFragment.h.
References _bn_, and installNode().
Referenced by installNode().
| void gum::BayesNetFragment< GUM_SCALAR >::installNode | ( | NodeId | id | ) |
install a node referenced by its nodeId
| NotFound | if the node does not exist in the referred BN |
Definition at line 151 of file BayesNetFragment_tpl.h.
References _bn_, gum::DAGmodel::dag_, GUM_ERROR, and isInstalledNode().
Referenced by installAscendants().
|
finalvirtualinherited |
check if nodes X and nodes Y are independent given nodes Z
Implements gum::GraphicalModel.
Definition at line 142 of file DAGmodel_inl.h.
References dag(), and gum::DAG::dSeparation().
|
inlineinherited |
build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes
| nodes | the set of nodeId |
| nodenames | the vector of names of nodes |
Definition at line 202 of file DAGmodel.h.
References gum::GraphicalModel::idFromName(), isIndependent(), and gum::GraphicalModel::nodeset().
|
inlineinherited |
build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes
| nodes | the set of nodeId |
| nodenames | the vector of names of nodes |
Definition at line 208 of file DAGmodel.h.
References isIndependent(), and gum::GraphicalModel::nodeset().
|
finalvirtualinherited |
check if node X and node Y are independent given nodes Z
Implements gum::GraphicalModel.
Definition at line 138 of file DAGmodel_inl.h.
References dag(), and gum::DAG::dSeparation().
Referenced by isIndependent(), and isIndependent().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 203 of file BayesNetFragment.h.
References idFromName(), and isInstalledNode().
| INLINE bool gum::BayesNetFragment< GUM_SCALAR >::isInstalledNode | ( | NodeId | id | ) | const |
check if a certain NodeId exists in the fragment
Definition at line 146 of file BayesNetFragment_tpl.h.
References gum::DAGmodel::dag().
Referenced by checkConsistency(), cpt(), idFromName(), installCPT_(), installMarginal(), installNode(), isInstalledNode(), nodeId(), toDot(), uninstallCPT(), uninstallNode(), variable(), and variableFromName().
|
inherited |
Compute a parameter of the joint probability for the BN (given an instantiation of the vars).
Definition at line 221 of file IBayesNet_tpl.h.
References cpt(), and gum::DAGmodel::nodes().
|
inherited |
Definition at line 95 of file graphicalModel_inl.h.
References nodes().
Referenced by gum::IBayesNet< GUM_SCALAR >::toString(), gum::IMarkovRandomField< GUM_SCALAR >::toString(), and gum::InfluenceDiagram< GUM_SCALAR >::toString().
|
inherited |
Compute a parameter of the log joint probability for the BN (given an instantiation of the vars).
Compute a parameter of the joint probability for the BN (given an instantiation of the vars).
Definition at line 239 of file IBayesNet_tpl.h.
|
inherited |
Definition at line 151 of file IBayesNet_tpl.h.
References cpt(), and gum::DAGmodel::nodes().
|
inherited |
Definition at line 131 of file IBayesNet_tpl.h.
References cpt(), and gum::DAGmodel::nodes().
|
inherited |
Definition at line 111 of file IBayesNet_tpl.h.
References gum::DAGmodel::nodes(), and variable().
Referenced by gum::ImportanceSampling< GUM_SCALAR >::onContextualize_().
|
inherited |
compute the (approximated) footprint in memory of the model (the footprints of CPTs)
Definition at line 161 of file IBayesNet_tpl.h.
References gum::DAGmodel::nodes().
Referenced by toString().
|
inherited |
Definition at line 150 of file DAGmodel_inl.h.
References dag_.
|
inherited |
Definition at line 154 of file DAGmodel_inl.h.
|
inherited |
Definition at line 159 of file DAGmodel_inl.h.
|
inherited |
Definition at line 146 of file DAGmodel_inl.h.
|
inherited |
Definition at line 141 of file IBayesNet_tpl.h.
References cpt(), and gum::DAGmodel::nodes().
Referenced by gum::ImportanceSampling< GUM_SCALAR >::onContextualize_().
|
inherited |
Definition at line 121 of file IBayesNet_tpl.h.
References cpt(), and gum::DAGmodel::nodes().
|
inherited |
The node's id are coherent with the variables and nodes of the topology.
Definition at line 64 of file DAGmodel.cpp.
References dag(), and gum::DAG::moralGraph().
Referenced by gum::prm::SVE< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVE< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVE< GUM_SCALAR >::_initLiftedNodes_(), and gum::prm::SVED< GUM_SCALAR >::_initLiftedNodes_().
build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes
| nodes | the set of nodeId |
| nodenames | the vector of names of nodes |
Definition at line 134 of file DAGmodel_inl.h.
References dag(), gum::DAG::moralizedAncestralGraph(), and nodes().
Referenced by moralizedAncestralGraph().
|
inherited |
build a UndiGraph by moralizing the Ancestral Graph of a set of Nodes
| nodes | the set of nodeId |
| nodenames | the vector of names of nodes |
Definition at line 130 of file DAGmodel_inl.h.
References moralizedAncestralGraph(), and gum::GraphicalModel::nodeset().
|
inherited |
transform a NodeSet in a vector of names
Definition at line 129 of file graphicalModel_inl.h.
|
inherited |
transform a vector of NodeId in a vector of names
Definition at line 119 of file graphicalModel_inl.h.
References ids(), and variableNodeMap().
Referenced by gum::DAGmodel::children(), exists(), ids(), nodeset(), and gum::DAGmodel::parents().
|
finalvirtual |
Return id node from discrete var pointer.
| NotFound | If no variable match var. |
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 116 of file BayesNetFragment_tpl.h.
References _bn_, GUM_ERROR, isInstalledNode(), and gum::Variable::name().
|
finalvirtualinherited |
Returns a constant reference to the dag of this Bayes Net.
Implements gum::GraphicalModel.
Definition at line 113 of file DAGmodel_inl.h.
References dag_.
Referenced by gum::Estimator< GUM_SCALAR >::Estimator(), gum::BayesNetFragment< GUM_SCALAR >::~BayesNetFragment(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_verticesSampling_(), gum::BayesNet< GUM_SCALAR >::beginTopologyTransformation(), gum::InfluenceDiagram< GUM_SCALAR >::beginTopologyTransformation(), gum::IBayesNet< GUM_SCALAR >::check(), gum::BayesNetFragment< GUM_SCALAR >::checkConsistency(), gum::BayesNet< GUM_SCALAR >::clear(), gum::InfluenceDiagram< GUM_SCALAR >::copyStructureAndTables_(), gum::IBayesNet< GUM_SCALAR >::dim(), gum::BayesNet< GUM_SCALAR >::endTopologyTransformation(), gum::InfluenceDiagram< GUM_SCALAR >::endTopologyTransformation(), gum::InfluenceDiagram< GUM_SCALAR >::fastPrototype(), gum::BayesNet< GUM_SCALAR >::generateCPTs(), gum::getMaxModality(), hasSameStructure(), gum::IBayesNet< GUM_SCALAR >::jointProbability(), gum::IBayesNet< GUM_SCALAR >::maxNonOneParam(), gum::IBayesNet< GUM_SCALAR >::maxParam(), gum::IBayesNet< GUM_SCALAR >::maxVarDomainSize(), gum::IBayesNet< GUM_SCALAR >::memoryFootprint(), gum::IBayesNet< GUM_SCALAR >::minNonZeroParam(), gum::IBayesNet< GUM_SCALAR >::minParam(), gum::prm::ClassBayesNet< GUM_SCALAR >::modalities(), gum::prm::InstanceBayesNet< GUM_SCALAR >::modalities(), moralizedAncestralGraph(), gum::InfluenceDiagram< GUM_SCALAR >::operator==(), gum::Estimator< GUM_SCALAR >::setFromBN(), gum::BayesNetFragment< GUM_SCALAR >::toBN(), gum::prm::ClassBayesNet< GUM_SCALAR >::toDot(), gum::prm::InstanceBayesNet< GUM_SCALAR >::toDot(), and gum::ImportanceSampling< GUM_SCALAR >::unsharpenBN_().
|
inherited |
transform a vector of names into a NodeSet
Definition at line 60 of file graphicalModel.cpp.
References idFromName(), gum::Set< Key >::insert(), and names().
Referenced by gum::IBayesNet< double >::children(), gum::IBayesNet< double >::children(), gum::DAGmodel::isIndependent(), gum::DAGmodel::isIndependent(), gum::UGmodel::isIndependent(), gum::UGmodel::isIndependent(), gum::DAGmodel::moralizedAncestralGraph(), and gum::DAGmodel::parents().
|
inherited |
Definition at line 303 of file IBayesNet_tpl.h.
References IBayesNet(), and gum::operator==().
|
inherited |
This operator compares 2 BNs !
Definition at line 256 of file IBayesNet_tpl.h.
References IBayesNet(), and gum::DAGmodel::size().
returns the set of nodes with arc ingoing to a given node
Note that the set of nodes returned may be empty if no arc within the ArcGraphPart is ingoing into the given node.
| 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 |
Definition at line 75 of file DAGmodel_inl.h.
References dag_.
Referenced by gum::IBayesNet< GUM_SCALAR >::check(), gum::BayesNetFragment< GUM_SCALAR >::checkConsistency(), gum::InfluenceDiagram< GUM_SCALAR >::copyStructureAndTables_(), gum::BayesNetFragment< GUM_SCALAR >::installCPT(), gum::BayesNetFragment< GUM_SCALAR >::installCPT_(), parents(), parents(), gum::prm::ClassBayesNet< GUM_SCALAR >::toDot(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::toDot().
returns the parents of a set of nodes
Definition at line 99 of file DAGmodel_inl.h.
References dag_, and gum::GraphicalModel::ids().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 77 of file DAGmodel_inl.h.
References gum::GraphicalModel::idFromName(), and parents().
|
inherited |
return true if the arc tail->head exists in the DAGmodel
| tail | the nodeId (or the name) of the tail in tail->head |
| head | the nodeId (or the name) of the head in tail->head |
Definition at line 101 of file DAGmodel_inl.h.
References gum::GraphicalModel::names(), gum::GraphicalModel::nodeset(), and parents().
|
inherited |
List of all the properties.
Definition at line 81 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_(), and GUM_ERROR.
Referenced by gum::IMarkovRandomField< GUM_SCALAR >::toDot(), gum::InfluenceDiagram< GUM_SCALAR >::toDot(), and gum::IMarkovRandomField< GUM_SCALAR >::toDotAsFactorGraph().
|
inherited |
Return the value of the property name of this GraphicalModel.
return byDefault if the property name is not found
Definition at line 75 of file graphicalModel_inl.h.
References _propertiesMap_.
|
inherited |
Add or change a property of this GraphicalModel.
Definition at line 89 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().
|
finalvirtualinherited |
Returns the number of variables in this Directed Graphical Model.
Implements gum::GraphicalModel.
Definition at line 60 of file DAGmodel_inl.h.
References dag(), and gum::NodeGraphPart::size().
Referenced by gum::InfluenceDiagram< GUM_SCALAR >::copyStructureAndTables_(), gum::InfluenceDiagram< GUM_SCALAR >::decisionNodeSize(), hasSameStructure(), gum::MarkovBlanket::hasSameStructure(), gum::IBayesNet< GUM_SCALAR >::operator==(), gum::InfluenceDiagram< GUM_SCALAR >::operator==(), gum::prm::ClassBayesNet< GUM_SCALAR >::toDot(), gum::prm::InstanceBayesNet< GUM_SCALAR >::toDot(), and gum::IBayesNet< GUM_SCALAR >::toString().
|
inherited |
Returns the number of arcs in this Directed Graphical Model.
Definition at line 63 of file DAGmodel_inl.h.
References dag_.
Referenced by hasSameStructure(), gum::MarkovBlanket::hasSameStructure(), and gum::InfluenceDiagram< GUM_SCALAR >::operator==().
|
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 69 of file graphicalModel.cpp.
Referenced by gum::IBayesNet< GUM_SCALAR >::toString().
| gum::BayesNet< GUM_SCALAR > gum::BayesNetFragment< GUM_SCALAR >::toBN | ( | ) | const |
create a brand new BayesNet from a fragment.
Definition at line 370 of file BayesNetFragment_tpl.h.
References gum::BayesNet< GUM_SCALAR >::add(), gum::BayesNet< GUM_SCALAR >::addArc(), gum::DAGmodel::arcs(), checkConsistency(), gum::BayesNet< GUM_SCALAR >::cpt(), cpt(), gum::DAGmodel::dag(), GUM_ERROR, gum::DAGmodel::nodes(), and variable().
|
finalvirtual |
creates a dot representing the whole referred BN hilighting the fragment.
Reimplemented from gum::IBayesNet< GUM_SCALAR >.
Definition at line 303 of file BayesNetFragment_tpl.h.
References _bn_, _localCPTs_, checkConsistency(), gum::DAGmodel::dag(), gum::DAGmodel::existsArc(), and isInstalledNode().
The topological order stays the same as long as no variable or arcs are added or erased src the topology.
| clear | If false returns the previously created topology. |
Definition at line 115 of file DAGmodel_inl.h.
Referenced by gum::InfluenceDiagramGenerator< GUM_SCALAR >::_checkTemporalOrder_(), gum::InfluenceDiagram< GUM_SCALAR >::decisionOrder(), and gum::InfluenceDiagram< GUM_SCALAR >::decisionOrderExists().
|
inherited |
Definition at line 170 of file IBayesNet_tpl.h.
References gum::DAGmodel::dag(), dim(), gum::GraphicalModel::log10DomainSize(), memoryFootprint(), gum::DAGmodel::size(), and gum::GraphicalModel::spaceCplxToStream().
Referenced by gum::operator<<().
|
protected |
Definition at line 187 of file BayesNetFragment_tpl.h.
References gum::DAGmodel::dag_.
Referenced by installCPT_(), and whenArcDeleted().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 279 of file BayesNetFragment.h.
References idFromName(), and uninstallCPT().
Referenced by uninstallCPT().
| INLINE void gum::BayesNetFragment< GUM_SCALAR >::uninstallCPT | ( | NodeId | id | ) |
uninstall a local CPT.
Definition at line 245 of file BayesNetFragment_tpl.h.
References _bn_, _localCPTs_, cpt(), installArc_(), isInstalledNode(), and uninstallCPT_().
Referenced by gum::ImportanceSampling< GUM_SCALAR >::onContextualize_(), and uninstallNode().
|
protected |
uninstall a local CPT.
Does nothing if no local CPT for this nodeId No check. No change in the topology. Checks are made in public methods.
Definition at line 239 of file BayesNetFragment_tpl.h.
References _localCPTs_.
Referenced by ~BayesNetFragment(), installCPT_(), and uninstallCPT().
|
inline |
check if a certain NodeId exists in the fragment
Definition at line 234 of file BayesNetFragment.h.
References idFromName(), and uninstallNode().
Referenced by uninstallNode().
| INLINE void gum::BayesNetFragment< GUM_SCALAR >::uninstallNode | ( | NodeId | id | ) |
uninstall a node referenced by its nodeId
Definition at line 179 of file BayesNetFragment_tpl.h.
References gum::DAGmodel::dag_, isInstalledNode(), and uninstallCPT().
Referenced by whenNodeDeleted().
|
inlinefinalvirtual |
Returns the CPT of a variable.
| NotFound | If no variable's id matches varId. |
Definition at line 162 of file BayesNetFragment.h.
References idFromName(), and variable().
|
finalvirtual |
Returns a constant reference over a variabe given it's node id.
| NotFound | If no variable's id matches varId. |
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 109 of file BayesNetFragment_tpl.h.
References _bn_, GUM_ERROR, and isInstalledNode().
Referenced by installCPT(), toBN(), and variable().
|
finalvirtual |
Getter by name.
| NotFound | if no such name exists in the graph. |
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 135 of file BayesNetFragment_tpl.h.
References _bn_, GUM_ERROR, idFromName(), and isInstalledNode().
|
finalvirtual |
Returns a constant reference to the VariableNodeMap of this BN.
Implements gum::IBayesNet< GUM_SCALAR >.
Definition at line 104 of file BayesNetFragment_tpl.h.
References _bn_.
|
inherited |
transform a vector of NodeId into a VariableeSet
Definition at line 160 of file graphicalModel_inl.h.
References gum::VariableNodeMap::get(), gum::Set< Key >::insert(), and variableNodeMap().
|
inherited |
transform a vector of names into a VariableeSet
Definition at line 150 of file graphicalModel_inl.h.
References variableNodeMap().
|
finalvirtual |
the action to take when a new arc is inserted into the graph
| src | the object that sent the signal |
| from | the id of tail of the new arc inserted into the graph |
| to | the id of head of the new arc inserted into the graph |
Implements gum::DiGraphListener.
Definition at line 82 of file BayesNetFragment_tpl.h.
|
finalvirtual |
the action to take when an arc has just been removed from the graph
| src | the object that sent the signal |
| from | the id of tail of the arc removed from the graph |
| to | the id of head of the arc removed from the graph |
Implements gum::DiGraphListener.
Definition at line 88 of file BayesNetFragment_tpl.h.
References gum::DAGmodel::dag(), gum::DAGmodel::existsArc(), and uninstallArc_().
|
finalvirtual |
the action to take when a new node is inserted into the graph
| src | the object that sent the signal |
| id | the id of the new node inserted into the graph |
Implements gum::DiGraphListener.
Definition at line 71 of file BayesNetFragment_tpl.h.
|
finalvirtual |
the action to take when a node has just been removed from the graph
| src | the object that sent the signal |
| id | the id of the node has just been removed from the graph |
Implements gum::DiGraphListener.
Definition at line 76 of file BayesNetFragment_tpl.h.
References uninstallNode().
|
private |
The referred BayesNet.
Definition at line 92 of file BayesNetFragment.h.
Referenced by BayesNetFragment(), checkConsistency(), cpt(), idFromName(), installAscendants(), installAscendants(), installCPT(), installCPT(), installCPT_(), installMarginal(), installMarginal(), installNode(), installNode(), nodeId(), toDot(), uninstallCPT(), variable(), variableFromName(), and variableNodeMap().
|
private |
Mapping between the variable's id and their CPT specific to this Fragment.
Definition at line 96 of file BayesNetFragment.h.
Referenced by ~BayesNetFragment(), cpt(), installCPT_(), toDot(), uninstallCPT(), and uninstallCPT_().
|
privateinherited |
The properties of this Directed Graphical Model.
Definition at line 236 of file graphicalModel.h.
Referenced by _properties_(), operator=(), properties(), propertyWithDefault(), and setProperty().
|
privateinherited |
Definition at line 113 of file listener.h.
Referenced by Listener(), ~Listener(), _attachSignal_(), and _detachSignal_().
|
protectedinherited |
The DAG of this Directed Graphical Model.
Definition at line 272 of file DAGmodel.h.
Referenced by DAGmodel(), gum::prm::ClassBayesNet< GUM_SCALAR >::_get_(), gum::prm::ClassBayesNet< GUM_SCALAR >::_init_(), gum::prm::InstanceBayesNet< GUM_SCALAR >::_init_(), gum::BayesNet< GUM_SCALAR >::add(), gum::BayesNet< GUM_SCALAR >::addArc(), gum::InfluenceDiagram< GUM_SCALAR >::addArc(), gum::InfluenceDiagram< GUM_SCALAR >::addNode_(), arcs(), children(), children(), children(), dag(), gum::BayesNet< GUM_SCALAR >::erase(), gum::InfluenceDiagram< GUM_SCALAR >::erase(), gum::BayesNet< GUM_SCALAR >::eraseArc(), gum::InfluenceDiagram< GUM_SCALAR >::eraseArc(), exists(), existsArc(), gum::InfluenceDiagram< GUM_SCALAR >::existsPathBetween(), family(), family(), gum::InfluenceDiagram< GUM_SCALAR >::getChildrenDecision_(), gum::InfluenceDiagram< GUM_SCALAR >::getDecisionGraph(), gum::InfluenceDiagram< GUM_SCALAR >::getPartialTemporalOrder(), gum::BayesNetFragment< GUM_SCALAR >::installArc_(), gum::BayesNetFragment< GUM_SCALAR >::installNode(), minimalCondSet(), gum::InfluenceDiagram< GUM_SCALAR >::moralGraph_(), nodes(), operator=(), parents(), parents(), gum::InfluenceDiagram< GUM_SCALAR >::removeTables_(), sizeArcs(), gum::InfluenceDiagram< GUM_SCALAR >::toDot(), gum::BayesNetFragment< GUM_SCALAR >::uninstallArc_(), and gum::BayesNetFragment< GUM_SCALAR >::uninstallNode().
|
protectedinherited |
the graph to listen to
Definition at line 117 of file diGraphListener.h.
Referenced by DiGraphListener().