![]() |
aGrUM
0.16.0
|
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 263 of file searchStrategy.h.
INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | ) |
Default constructor.
Definition at line 405 of file searchStrategy_tpl.h.
INLINE gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::TreeWidthSearch | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 411 of file searchStrategy_tpl.h.
|
virtual |
Destructor.
Definition at line 418 of file searchStrategy_tpl.h.
References gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator=().
|
protectedinherited |
Definition at line 36 of file searchStrategy_tpl.h.
References gum::SequenceImplementation< Key, Alloc, std::is_scalar< Key >::value >::exists(), and gum::SequenceImplementation< Key, Alloc, std::is_scalar< Key >::value >::insert().
Referenced by gum::prm::gspan::StrictSearch< GUM_SCALAR >::__compute_costs(), and gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 449 of file searchStrategy_tpl.h.
References gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 439 of file searchStrategy_tpl.h.
References gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost(), gum::prm::gspan::Pattern::label(), gum::prm::gspan::Pattern::nodes(), and gum::prm::gspan::LabelData::tree_width.
INLINE double gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost | ( | const Pattern & | p | ) |
Definition at line 429 of file searchStrategy_tpl.h.
References gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::__map, and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_computeCost().
Referenced by gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::accept_growth(), gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::accept_root(), and gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator()().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 463 of file searchStrategy_tpl.h.
References gum::prm::gspan::LabelData::tree_width.
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 457 of file searchStrategy_tpl.h.
References gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
INLINE TreeWidthSearch< GUM_SCALAR > & gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::operator= | ( | const TreeWidthSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 424 of file searchStrategy_tpl.h.
Referenced by gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::~TreeWidthSearch().
|
inherited |
Definition at line 233 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
private |
Definition at line 301 of file searchStrategy.h.
Referenced by gum::prm::gspan::TreeWidthSearch< GUM_SCALAR >::cost().
|
protectedinherited |
Definition at line 112 of file searchStrategy.h.
Referenced by 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(), gum::prm::gspan::FrequenceSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator()(), gum::prm::gspan::SearchStrategy< GUM_SCALAR >::operator=(), and gum::prm::gspan::SearchStrategy< GUM_SCALAR >::setTree().