![]() |
aGrUM
0.20.2
a C++ library for (probabilistic) graphical models
|
This is class is an implementation of a strict strategy for the GSpan algorithm. More...
#include <agrum/PRM/gspan/DFSTree.h>
Public Member Functions | |
Constructor and destructor. | |
StrictSearch (Size freq=2) | |
Default constructor. More... | |
StrictSearch (const StrictSearch &from) | |
Copy constructor. More... | |
virtual | ~StrictSearch () |
Destructor. More... | |
StrictSearch & | operator= (const StrictSearch &from) |
Copy operator. More... | |
Search methods. | |
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) |
Classes | |
struct | PData |
Private structure to represent data about a pattern. More... | |
This is class is an implementation of a strict strategy for the GSpan algorithm.
This will force early cuts in the DFSTree and should help not spending much time searching for new patterns.
A new growth is accepted if it is at least better than its predecessor.
Definition at line 176 of file searchStrategy.h.
|
explicit |
Default constructor.
Definition at line 299 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::StrictSearch< GUM_SCALAR >::StrictSearch | ( | const StrictSearch< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 305 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Destructor.
Definition at line 313 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 330 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 325 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 64 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 395 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<<().
|
private |
Definition at line 155 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 354 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 347 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 340 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE StrictSearch< GUM_SCALAR > & gum::prm::gspan::StrictSearch< GUM_SCALAR >::operator= | ( | const StrictSearch< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 318 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 364 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
inherited |
Definition at line 235 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 374 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 381 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 388 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 237 of file searchStrategy.h.
|
private |
Definition at line 212 of file searchStrategy.h.
|
private |
Definition at line 216 of file searchStrategy.h.
|
protectedinherited |
Definition at line 112 of file searchStrategy.h.