![]() |
aGrUM
0.20.3
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. More... | |
TreeWidthSearch (const TreeWidthSearch &from) | |
Copy constructor. More... | |
virtual | ~TreeWidthSearch () |
Destructor. More... | |
TreeWidthSearch & | operator= (const TreeWidthSearch &from) |
Copy operator. More... | |
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 Attributes | |
DFSTree< GUM_SCALAR > * | tree_ |
Protected Member Functions | |
double | computeCost_ (const Pattern &p) |
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 260 of file searchStrategy.h.
INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | ) |
Default constructor.
Definition at line 383 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 389 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Destructor.
Definition at line 395 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 427 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 416 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
protectedinherited |
Definition at line 35 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE double gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost | ( | const Pattern & | p | ) |
Definition at line 406 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 439 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 434 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE TreeWidthSearch< GUM_SCALAR > & gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator= | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
|
inherited |
Definition at line 219 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 298 of file searchStrategy.h.
|
protectedinherited |
Definition at line 111 of file searchStrategy.h.