![]() |
aGrUM
0.20.3
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 175 of file searchStrategy.h.
|
explicit |
Default constructor.
Definition at line 280 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 286 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Destructor.
Definition at line 292 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 62 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 371 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 141 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 330 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 340 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 351 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 358 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 365 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 310 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 304 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<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 324 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Implements gum::prm::gspan::SearchStrategy< GUM_SCALAR >.
Definition at line 318 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 298 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
inherited |
Definition at line 219 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
private |
Definition at line 236 of file searchStrategy.h.
|
private |
Definition at line 211 of file searchStrategy.h.
|
private |
Definition at line 215 of file searchStrategy.h.
|
protectedinherited |
Definition at line 111 of file searchStrategy.h.