![]() |
aGrUM 2.3.2
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. | |
| virtual | ~TreeWidthSearch () |
| Destructor. | |
| TreeWidthSearch & | operator= (const TreeWidthSearch &from) |
| Copy operator. | |
Search methods. | |
| double | cost (const Pattern &p) |
| virtual bool | accept_root (const Pattern *r) |
| virtual bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth) |
| virtual bool | operator() (LabelData *i, LabelData *j) |
| virtual bool | operator() (Pattern *i, Pattern *j) |
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 271 of file searchStrategy.h.
| INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | ) |
Default constructor.
Definition at line 401 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and TreeWidthSearch().
Referenced by TreeWidthSearch(), TreeWidthSearch(), ~TreeWidthSearch(), and operator=().
| INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 406 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy(), and TreeWidthSearch().
|
virtual |
Destructor.
Definition at line 412 of file searchStrategy_tpl.h.
References TreeWidthSearch().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 444 of file searchStrategy_tpl.h.
References cost().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 433 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 56 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().
| INLINE double gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost | ( | const Pattern & | p | ) |
Definition at line 423 of file searchStrategy_tpl.h.
References _map_, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::computeCost_().
Referenced by accept_growth(), accept_root(), and operator()().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 456 of file searchStrategy_tpl.h.
References gum::prm::gspan::LabelData::tree_width.
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 451 of file searchStrategy_tpl.h.
References cost().
| INLINE TreeWidthSearch< GUM_SCALAR > & gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator= | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 418 of file searchStrategy_tpl.h.
References TreeWidthSearch().
|
inherited |
Definition at line 238 of file searchStrategy_tpl.h.
References tree_.
|
private |
Definition at line 309 of file searchStrategy.h.
Referenced by cost().
|
protectedinherited |
Definition at line 120 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()(), operator=(), and setTree().