![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
represent a DFS code used by gspan. More...
#include <agrum/PRM/gspan/edgeCode.h>
Public Attributes | |
NodeId | i |
The DFS subscript of the first node in the code. More... | |
NodeId | j |
The DFS subscript of the second node in the code. More... | |
Size | l_i |
The label of the first node in the code. More... | |
Size | l_ij |
The label of the edge in the code. More... | |
Size | l_j |
The label of the second node in the code. More... | |
std::string | name |
The string version of this EdgeCode. More... | |
Public Member Functions | |
EdgeCode (NodeId i, NodeId j, Size l_i, Size l_ij, Size l_j) | |
Default constructor. More... | |
EdgeCode (const EdgeCode &source) | |
Copy constructor. More... | |
~EdgeCode () | |
Destructor. More... | |
bool | isForward () const |
Returns true if this EdgeCode is a forward edge. More... | |
bool | isBackward () const |
Returns true if this EdgeCode is a backward edge. More... | |
EdgeCode & | operator= (const EdgeCode &source) |
Copy operator. More... | |
bool | operator== (const EdgeCode &code) const |
Equality operator. More... | |
bool | operator!= (const EdgeCode &code) const |
Difference operator. More... | |
bool | operator< (const EdgeCode &code) const |
Lesser than operator. More... | |
represent a DFS code used by gspan.
A DFS code represents a pair of node and an edge between these two nodes.
Definition at line 51 of file edgeCode.h.
Default constructor.
If flag is true then this EdgeCode is a forward edge, otherwise it is a backward edge.
i | The DFS subscript of the first node in the code. |
j | The DFS subscript of the second node in the code. |
l_i | The label of the first node in the code. |
l_ij | The label of the edge in the code. |
l_j | The label of the second node in the code. |
Definition at line 34 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::EdgeCode::EdgeCode | ( | const EdgeCode & | source | ) |
Copy constructor.
source | The copied EdgeCode. |
Definition at line 43 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::EdgeCode::~EdgeCode | ( | ) |
Destructor.
Definition at line 49 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE bool gum::prm::gspan::EdgeCode::isBackward | ( | ) | const |
Returns true if this EdgeCode is a backward edge.
Definition at line 58 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE bool gum::prm::gspan::EdgeCode::isForward | ( | ) | const |
Returns true if this EdgeCode is a forward edge.
Definition at line 55 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
Difference operator.
code | The code tested for difference with this. |
Definition at line 77 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
Lesser than operator.
code | The code on which the test is made. |
Definition at line 83 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
Copy operator.
source | The copied EdgeCode. |
Definition at line 61 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
Equality operator.
code | The code tested for equality with this. |
Definition at line 71 of file edgeCode_inl.h.
References gum::prm::gspan::operator<<().
NodeId gum::prm::gspan::EdgeCode::i |
The DFS subscript of the first node in the code.
Definition at line 76 of file edgeCode.h.
NodeId gum::prm::gspan::EdgeCode::j |
The DFS subscript of the second node in the code.
Definition at line 79 of file edgeCode.h.
Size gum::prm::gspan::EdgeCode::l_i |
The label of the first node in the code.
Definition at line 82 of file edgeCode.h.
Size gum::prm::gspan::EdgeCode::l_ij |
The label of the edge in the code.
Definition at line 85 of file edgeCode.h.
Size gum::prm::gspan::EdgeCode::l_j |
The label of the second node in the code.
Definition at line 88 of file edgeCode.h.
std::string gum::prm::gspan::EdgeCode::name |
The string version of this EdgeCode.
Definition at line 91 of file edgeCode.h.