![]() |
aGrUM
0.16.0
|
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 63 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 37 of file edgeGrowth_tpl.h.
INLINE gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::EdgeGrowth | ( | const EdgeGrowth< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 48 of file edgeGrowth_tpl.h.
References gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::degree_list.
INLINE gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::~EdgeGrowth | ( | ) |
Destructor.
Definition at line 62 of file edgeGrowth_tpl.h.
References gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::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 76 of file edgeGrowth_tpl.h.
References gum::UndiGraph::addEdge(), gum::NodeGraphPart::addNode(), gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::degree_list, gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::iso_graph, and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::matches.
Referenced by gum::prm::GSpan< GUM_SCALAR >::__subgraph_mining().
INLINE std::string gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::toString | ( | ) |
Return a string representation of this.
Definition at line 69 of file edgeGrowth_tpl.h.
References gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::edge, gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::l_v, gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::u, and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::v.
Referenced by gum::prm::GSpan< GUM_SCALAR >::__subgraph_mining().
|
friend |
Definition at line 65 of file edgeGrowth.h.
|
private |
Vector used for computation.
Definition at line 98 of file edgeGrowth.h.
Referenced by gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::EdgeGrowth(), gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::insert(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::~EdgeGrowth().
LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::edge |
The LabelData over the edge of this edge growth.
Definition at line 78 of file edgeGrowth.h.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__checkGrowth(), gum::prm::gspan::operator<<(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::toString().
|
private |
The iso graph for computing the maximum independent set of matches.
Definition at line 96 of file edgeGrowth.h.
Referenced by gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::insert().
LabelData* gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::l_v |
The LabelData over the node of this edge growth.
Definition at line 80 of file edgeGrowth.h.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__checkGrowth(), gum::prm::gspan::operator<<(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::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 90 of file edgeGrowth.h.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::growPattern(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::insert().
|
private |
The max indep set of matches.
Definition at line 100 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 76 of file edgeGrowth.h.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__checkGrowth(), gum::prm::gspan::operator<<(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::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 83 of file edgeGrowth.h.
Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__checkGrowth(), gum::prm::gspan::operator<<(), and gum::prm::gspan::EdgeGrowth< GUM_SCALAR >::toString().