![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
This class is used to define an edge growth of a pattern in this DFSTree. More...
#include <agrum/PRM/DFSTree.h>
Public Attributes | |
NodeId | u |
The id of the node from which we grow an edge. More... | |
LabelData * | edge |
The LabelData over the edge of this edge growth. More... | |
LabelData * | l_v |
The LabelData over the node of this edge growth. More... | |
NodeId | v |
If the growth is backward you must assigned the subscript of v, otherwise 0 is assigned (recall that subscripts start from 1) More... | |
NodeProperty< std::pair< PRMInstance< GUM_SCALAR > *, PRMInstance< GUM_SCALAR > *> > | matches |
The mapping between the u and v for each match in the interface graph. More... | |
Public Member Functions | |
EdgeGrowth (NodeId a_u, LabelData *an_edge, LabelData *a_l_v, NodeId a_v=0) | |
Constructor. More... | |
EdgeGrowth (const EdgeGrowth &from) | |
Copy constructor. More... | |
~EdgeGrowth () | |
Destructor. More... | |
void | insert (PRMInstance< GUM_SCALAR > *u, PRMInstance< GUM_SCALAR > *v) |
Add the pair (u,v) as a match for the current growth. More... | |
std::string | toString () |
Return a string representation of this. More... | |
Friends | |
class | DFSTree< GUM_SCALAR > |
This class is used to define an edge growth of a pattern in this DFSTree.
Definition at line 62 of file edgeGrowth.h.
INLINE gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::EdgeGrowth | ( | NodeId | a_u, |
LabelData * | an_edge, | ||
LabelData * | a_l_v, | ||
NodeId | a_v = 0 |
||
) |
Constructor.
Definition at line 36 of file edgeGrowth_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::EdgeGrowth | ( | const EdgeGrowth< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 46 of file edgeGrowth_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::~EdgeGrowth | ( | ) |
Destructor.
Definition at line 55 of file edgeGrowth_tpl.h.
References gum::prm::gspan::operator<<().
void gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::insert | ( | PRMInstance< GUM_SCALAR > * | u, |
PRMInstance< GUM_SCALAR > * | v | ||
) |
Add the pair (u,v) as a match for the current growth.
Definition at line 69 of file edgeGrowth_tpl.h.
References gum::prm::gspan::operator<<().
INLINE std::string gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::toString | ( | ) |
Return a string representation of this.
Definition at line 62 of file edgeGrowth_tpl.h.
References gum::prm::gspan::operator<<().
|
friend |
Definition at line 64 of file edgeGrowth.h.
|
private |
Vector used for computation.
Definition at line 92 of file edgeGrowth.h.
LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::edge |
The LabelData over the edge of this edge growth.
Definition at line 74 of file edgeGrowth.h.
|
private |
The iso graph for computing the maximum independent set of matches.
Definition at line 90 of file edgeGrowth.h.
LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::l_v |
The LabelData over the node of this edge growth.
Definition at line 76 of file edgeGrowth.h.
NodeProperty< std::pair< PRMInstance< GUM_SCALAR >*, PRMInstance< GUM_SCALAR >* > > gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::matches |
The mapping between the u and v for each match in the interface graph.
Definition at line 84 of file edgeGrowth.h.
|
private |
The max indep set of matches.
Definition at line 94 of file edgeGrowth.h.
NodeId gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::u |
The id of the node from which we grow an edge.
Definition at line 72 of file edgeGrowth.h.
NodeId gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::v |
If the growth is backward you must assigned the subscript of v, otherwise 0 is assigned (recall that subscripts start from 1)
Definition at line 79 of file edgeGrowth.h.