![]() |
aGrUM
0.16.0
|
This is an abstract class used to tune search strategies in the gspan algorithm. More...
#include <agrum/PRM/gspan/searchStrategy.h>
Public Member Functions | |
Constructor and destructor. | |
SearchStrategy () | |
Default constructor. More... | |
SearchStrategy (const SearchStrategy< GUM_SCALAR > &from) | |
Copy constructor. More... | |
virtual | ~SearchStrategy () |
Destructor. More... | |
SearchStrategy< GUM_SCALAR > & | operator= (const SearchStrategy< GUM_SCALAR > &from) |
Copy operator. More... | |
Search methods. | |
void | setTree (DFSTree< GUM_SCALAR > *tree) |
virtual bool | accept_root (const Pattern *r)=0 |
virtual bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth)=0 |
virtual bool | operator() (LabelData *i, LabelData *j)=0 |
virtual bool | operator() (Pattern *i, Pattern *j)=0 |
Protected Attributes | |
DFSTree< GUM_SCALAR > * | _tree |
Protected Member Functions | |
double | _computeCost (const Pattern &p) |
This is an abstract class used to tune search strategies in the gspan algorithm.
Since GSpan uses a DFS to expand the search tree, this class works as a stack regarding adding and removing informations about the growths.
INLINE gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy | ( | ) |
Default constructor.
Definition at line 208 of file searchStrategy_tpl.h.
INLINE gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy | ( | const SearchStrategy< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 213 of file searchStrategy_tpl.h.
|
virtual |
Destructor.
Definition at line 220 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::operator=().
|
protected |
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().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
INLINE SearchStrategy< GUM_SCALAR > & gum::prm::gspan::SearchStrategy< GUM_SCALAR >::operator= | ( | const SearchStrategy< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 226 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
Referenced by gum::prm::gspan::SearchStrategy< GUM_SCALAR >::~SearchStrategy().
INLINE void gum::prm::gspan::SearchStrategy< GUM_SCALAR >::setTree | ( | DFSTree< GUM_SCALAR > * | tree | ) |
Definition at line 233 of file searchStrategy_tpl.h.
References gum::prm::gspan::SearchStrategy< GUM_SCALAR >::_tree.
|
protected |
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().