![]() |
aGrUM 3.2.0
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 Member Functions | |
| EdgeGrowth (NodeId a_u, LabelData *an_edge, LabelData *a_l_v, NodeId a_v=0) | |
| Constructor. | |
| EdgeGrowth (const EdgeGrowth &from) | |
| Copy constructor. | |
| ~EdgeGrowth () | |
| Destructor. | |
| void | insert (PRMInstance< GUM_SCALAR > *u, PRMInstance< GUM_SCALAR > *v) |
| Add the pair (u,v) as a match for the current growth. | |
| std::string | toString () |
| Return a string representation of this. | |
Public Attributes | |
| NodeId | u |
| The id of the node from which we grow an edge. | |
| LabelData * | edge |
| The LabelData over the edge of this edge growth. | |
| LabelData * | l_v |
| The LabelData over the node of this edge growth. | |
| NodeId | v |
| If the growth is backward you must assigned the subscript of v, otherwise 0 is assigned (recall that subscripts start from 1). | |
| NodeProperty< std::pair< PRMInstance< GUM_SCALAR > *, PRMInstance< GUM_SCALAR > * > > | matches |
| The mapping between the u and v for each match in the interface graph. | |
Private Attributes | |
| UndiGraph | iso_graph |
| The iso graph for computing the maximum independent set of matches. | |
| std::vector< NodeId > * | degree_list |
| Vector used for computation. | |
| Set< NodeId > | max_indep_set |
| The max indep set of matches. | |
Friends | |
| class | DFSTree< GUM_SCALAR > |
This class is used to define an edge growth of a pattern in this DFSTree.
Definition at line 73 of file edgeGrowth.h.
| 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 58 of file edgeGrowth_tpl.h.
References EdgeGrowth(), degree_list, edge, l_v, u, and v.
Referenced by EdgeGrowth(), EdgeGrowth(), ~EdgeGrowth(), and DFSTree< GUM_SCALAR >.
| gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::EdgeGrowth | ( | const EdgeGrowth< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 67 of file edgeGrowth_tpl.h.
References EdgeGrowth(), degree_list, edge, iso_graph, matches, max_indep_set, u, and v.
| gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::~EdgeGrowth | ( | ) |
Destructor.
Definition at line 76 of file edgeGrowth_tpl.h.
References EdgeGrowth(), and degree_list.
| 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 90 of file edgeGrowth_tpl.h.
References degree_list, iso_graph, matches, u, and v.
Referenced by gum::prm::GSpan< GUM_SCALAR >::_subgraph_mining_().
| std::string gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::toString | ( | ) |
Return a string representation of this.
Definition at line 83 of file edgeGrowth_tpl.h.
References edge, l_v, u, and v.
Referenced by gum::prm::GSpan< GUM_SCALAR >::_subgraph_mining_().
Definition at line 113 of file edgeGrowth.h.
References EdgeGrowth().
|
private |
Vector used for computation.
Definition at line 103 of file edgeGrowth.h.
Referenced by EdgeGrowth(), EdgeGrowth(), ~EdgeGrowth(), and insert().
| LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::edge |
The LabelData over the edge of this edge growth.
Definition at line 85 of file edgeGrowth.h.
Referenced by EdgeGrowth(), EdgeGrowth(), gum::prm::gspan::DFSTree< GUM_SCALAR >::_checkGrowth_(), gum::prm::gspan::operator<<(), and toString().
|
private |
The iso graph for computing the maximum independent set of matches.
Definition at line 101 of file edgeGrowth.h.
Referenced by EdgeGrowth(), and insert().
| LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::l_v |
The LabelData over the node of this edge growth.
Definition at line 87 of file edgeGrowth.h.
Referenced by EdgeGrowth(), gum::prm::gspan::DFSTree< GUM_SCALAR >::_checkGrowth_(), gum::prm::gspan::operator<<(), and toString().
| 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 95 of file edgeGrowth.h.
Referenced by EdgeGrowth(), gum::prm::gspan::DFSTree< GUM_SCALAR >::growPattern(), and insert().
|
private |
The max indep set of matches.
Definition at line 105 of file edgeGrowth.h.
Referenced by EdgeGrowth().
| NodeId gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::u |
The id of the node from which we grow an edge.
Definition at line 83 of file edgeGrowth.h.
Referenced by EdgeGrowth(), EdgeGrowth(), gum::prm::gspan::DFSTree< GUM_SCALAR >::_checkGrowth_(), insert(), gum::prm::gspan::operator<<(), and toString().
| 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 90 of file edgeGrowth.h.
Referenced by EdgeGrowth(), EdgeGrowth(), gum::prm::gspan::DFSTree< GUM_SCALAR >::_checkGrowth_(), insert(), gum::prm::gspan::operator<<(), and toString().