55 i(my_i),
j(my_j),
l_i(my_l_i),
l_ij(my_l_ij),
l_j(my_l_j) {
57 std::stringstream sBuff;
104 if ((
i == code.
i) && (
j == code.
j)) {
108 return ((
i == code.
i) && (
j < code.
j)) || ((
i < code.
j) && (
j == code.
i));
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities
Size l_i
The label of the first node in the code.
NodeId i
The DFS subscript of the first node in the code.
bool operator==(const EdgeCode &code) const
Equality operator.
Size l_ij
The label of the edge in the code.
std::string name
The string version of this EdgeCode.
bool isForward() const
Returns true if this EdgeCode is a forward edge.
EdgeCode(NodeId i, NodeId j, Size l_i, Size l_ij, Size l_j)
Default constructor.
NodeId j
The DFS subscript of the second node in the code.
bool isBackward() const
Returns true if this EdgeCode is a backward edge.
EdgeCode & operator=(const EdgeCode &source)
Copy operator.
bool operator<(const EdgeCode &code) const
Lesser than operator.
bool operator!=(const EdgeCode &code) const
Difference operator.
Size l_j
The label of the second node in the code.