![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
A growth is accepted if and only if the new growth has a tree width less large or equal than its father. More...
#include <agrum/PRM/gspan/DFSTree.h>
Public Member Functions | |
Constructor and destructor. | |
| TreeWidthSearch () | |
| Default constructor. | |
| TreeWidthSearch (const TreeWidthSearch &from) | |
| Copy constructor. | |
| ~TreeWidthSearch () override | |
| Destructor. | |
| TreeWidthSearch & | operator= (const TreeWidthSearch &from) |
| Copy operator. | |
Search methods. | |
| double | cost (const Pattern &p) |
| bool | accept_root (const Pattern *r) override |
| bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth) override |
| bool | operator() (LabelData *i, LabelData *j) override |
| bool | operator() (Pattern *i, Pattern *j) override |
Search methods. | |
| void | setTree (DFSTree< GUM_SCALAR > *tree) |
Protected Member Functions | |
| double | computeCost_ (const Pattern &p) |
Protected Attributes | |
| DFSTree< GUM_SCALAR > * | tree_ |
Private Attributes | |
| HashTable< const Pattern *, double > | _map_ |
A growth is accepted if and only if the new growth has a tree width less large or equal than its father.
Definition at line 270 of file searchStrategy.h.
| gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | ) |
Default constructor.
Definition at line 393 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and TreeWidthSearch().
Referenced by TreeWidthSearch(), TreeWidthSearch(), ~TreeWidthSearch(), and operator=().
| gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 398 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and TreeWidthSearch().
|
override |
Destructor.
Definition at line 404 of file searchStrategy_tpl.h.
References TreeWidthSearch().
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 435 of file searchStrategy_tpl.h.
References cost().
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 425 of file searchStrategy_tpl.h.
References cost(), gum::prm::gspan::Pattern::label(), gum::prm::gspan::Pattern::nodes(), and gum::prm::gspan::LabelData::tree_width.
|
protectedinherited |
Definition at line 57 of file searchStrategy_tpl.h.
References gum::SequenceImplementation< Key, Gen >::exists(), gum::SequenceImplementation< Key, Gen >::insert(), and tree_.
Referenced by gum::prm::gspan::StrictSearch< GUM_SCALAR >::_compute_costs_(), and gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
| double gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost | ( | const Pattern & | p | ) |
Definition at line 415 of file searchStrategy_tpl.h.
References _map_, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::computeCost_().
Referenced by accept_growth(), accept_root(), and operator()().
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 447 of file searchStrategy_tpl.h.
References gum::prm::gspan::LabelData::tree_width.
|
overridevirtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 442 of file searchStrategy_tpl.h.
References cost().
| TreeWidthSearch< GUM_SCALAR > & gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator= | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 410 of file searchStrategy_tpl.h.
References TreeWidthSearch().
|
inherited |
Definition at line 236 of file searchStrategy_tpl.h.
References tree_.
|
private |
Definition at line 308 of file searchStrategy.h.
Referenced by cost().
|
protectedinherited |
Definition at line 119 of file searchStrategy.h.
Referenced by SearchStrategy(), SearchStrategy(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_compute_costs_(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::accept_root(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::accept_root(), computeCost_(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), and setTree().