![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
Class building the markov Blanket from a BN and a nodeName. More...
#include <agrum/BN/algorithms/MarkovBlanket.h>
Public Member Functions | |
| MarkovBlanket (const DAGmodel &m, NodeId n, int level=1) | |
| MarkovBlanket (const DAGmodel &m, std::string_view name, int level=1) | |
| ~MarkovBlanket () | |
| DAG | dag () const |
| std::string | toDot () const |
| const NodeSet & | parents (NodeId id) const |
| wrapping DAG::parents(id) | |
| const NodeSet & | children (NodeId id) const |
| wrapping DAG::children(id) | |
| NodeSet | parents (const NodeSet &ids) const |
| wrapping DAG::parents(ids) | |
| NodeSet | children (const NodeSet &ids) const |
| wrapping DAG::children(ids) | |
| NodeSet | descendants (NodeId id) const |
| wrapping DAG::descendants(id) | |
| NodeSet | ancestors (NodeId id) const |
| wrapping DAG::ancestors(id) | |
| Size | sizeArcs () const |
| wrapping DAG::sizeArcs() | |
| const ArcSet & | arcs () const |
| wrapping DAG::arcs() | |
| Size | sizeNodes () const |
| wrapping DAG::sizeNodes() | |
| Size | size () const |
| wrapping DAG::size() | |
| const NodeGraphPart & | nodes () const |
| wrapping DAG::nodes() | |
| bool | hasSameStructure (const DAGmodel &other) const |
Private Attributes | |
| const DAGmodel & | _model_ |
| DAG | _mb_ |
| const NodeId | _node_ |
| ArcSet | _specialArcs_ |
Class building the markov Blanket from a BN and a nodeName.
The main goal of this class is to build and to encapsulate the DiGraph which represents the Markov Blanket.
Definition at line 67 of file MarkovBlanket.h.
Definition at line 56 of file MarkovBlanket.cpp.
References _mb_, _model_, _node_, GUM_ERROR, gum::DAGmodel::internalDag(), gum::graph::markovBlanket(), and gum::NodeGraphPart::nodes().
Referenced by MarkovBlanket().
| gum::MarkovBlanket::MarkovBlanket | ( | const DAGmodel & | m, |
| std::string_view | name, | ||
| int | level = 1 ) |
Definition at line 76 of file MarkovBlanket.cpp.
References MarkovBlanket().
|
default |
References ancestors(), arcs(), children(), dag(), descendants(), hasSameStructure(), nodes(), parents(), size(), sizeArcs(), sizeNodes(), and toDot().
wrapping DAG::ancestors(id)
Definition at line 68 of file MarkovBlanket_inl.h.
References _mb_, and gum::DiGraph::ancestors().
Referenced by ~MarkovBlanket().
| INLINE const ArcSet & gum::MarkovBlanket::arcs | ( | ) | const |
wrapping DAG::arcs()
Definition at line 72 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::arcs().
Referenced by ~MarkovBlanket(), and hasSameStructure().
wrapping DAG::children(ids)
Definition at line 64 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::children().
wrapping DAG::children(id)
Definition at line 60 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::children().
Referenced by ~MarkovBlanket().
| INLINE DAG gum::MarkovBlanket::dag | ( | ) | const |
Definition at line 56 of file MarkovBlanket_inl.h.
References _mb_.
Referenced by ~MarkovBlanket().
wrapping DAG::descendants(id)
Definition at line 66 of file MarkovBlanket_inl.h.
References _mb_, and gum::DiGraph::descendants().
Referenced by ~MarkovBlanket().
Definition at line 81 of file MarkovBlanket.cpp.
References _model_, gum::DAGmodel::arcs(), arcs(), gum::DAGmodel::exists(), gum::Set< Key >::exists(), gum::DiscreteGraphicalModel::idFromName(), gum::Variable::name(), nodes(), gum::DAGmodel::size(), size(), gum::DAGmodel::sizeArcs(), sizeArcs(), and gum::DiscreteGraphicalModel::variable().
Referenced by ~MarkovBlanket().
| INLINE const NodeGraphPart & gum::MarkovBlanket::nodes | ( | ) | const |
wrapping DAG::nodes()
Definition at line 78 of file MarkovBlanket_inl.h.
References _mb_, and gum::NodeGraphPart::nodes().
Referenced by ~MarkovBlanket(), and hasSameStructure().
wrapping DAG::parents(ids)
Definition at line 62 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::parents().
wrapping DAG::parents(id)
Definition at line 58 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::parents().
Referenced by ~MarkovBlanket().
| INLINE Size gum::MarkovBlanket::size | ( | ) | const |
wrapping DAG::size()
Definition at line 76 of file MarkovBlanket_inl.h.
References _mb_, and gum::NodeGraphPart::size().
Referenced by ~MarkovBlanket(), and hasSameStructure().
| INLINE Size gum::MarkovBlanket::sizeArcs | ( | ) | const |
wrapping DAG::sizeArcs()
Definition at line 70 of file MarkovBlanket_inl.h.
References _mb_, and gum::ArcGraphPart::sizeArcs().
Referenced by ~MarkovBlanket(), and hasSameStructure().
| INLINE Size gum::MarkovBlanket::sizeNodes | ( | ) | const |
wrapping DAG::sizeNodes()
Definition at line 74 of file MarkovBlanket_inl.h.
References _mb_, and gum::NodeGraphPart::sizeNodes().
Referenced by ~MarkovBlanket().
| std::string gum::MarkovBlanket::toDot | ( | ) | const |
Definition at line 99 of file MarkovBlanket.cpp.
References _mb_, _model_, _node_, _specialArcs_, gum::ArcGraphPart::children(), gum::Set< Key >::exists(), gum::Variable::name(), gum::NodeGraphPart::nodes(), and gum::DiscreteGraphicalModel::variable().
Referenced by ~MarkovBlanket().
|
private |
Definition at line 122 of file MarkovBlanket.h.
Referenced by MarkovBlanket(), ancestors(), arcs(), children(), children(), dag(), descendants(), nodes(), parents(), parents(), size(), sizeArcs(), sizeNodes(), and toDot().
|
private |
Definition at line 121 of file MarkovBlanket.h.
Referenced by MarkovBlanket(), hasSameStructure(), and toDot().
|
private |
Definition at line 123 of file MarkovBlanket.h.
Referenced by MarkovBlanket(), and toDot().
|
private |
Definition at line 124 of file MarkovBlanket.h.
Referenced by toDot().