38 j(my_j), l_i(my_l_i), l_ij(my_l_ij), l_j(my_l_j) {
40 std::stringstream sBuff;
73 return ((
i == code.
i) && (
j == code.
j) && (
l_i == code.
l_i)
79 return ((
i != code.
i) || (
j != code.
j) || (
l_i != code.
l_i)
85 if ((
i == code.
i) && (
j == code.
j)) {
89 return ((
i == code.
i) && (
j < code.
j))
90 || ((
i < code.
j) && (
j == code.
i));
NodeId i
The DFS subscript of the first node in the code.
bool operator!=(const EdgeCode &code) const
Difference operator.
NodeId j
The DFS subscript of the second node in the code.
Size l_ij
The label of the edge in the code.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
represent a DFS code used by gspan.
bool isBackward() const
Returns true if this EdgeCode is a backward edge.
bool operator<(const EdgeCode &code) const
Lesser than operator.
bool operator==(const EdgeCode &code) const
Equality operator.
std::string name
The string version of this EdgeCode.
EdgeCode(NodeId i, NodeId j, Size l_i, Size l_ij, Size l_j)
Default constructor.
Size l_j
The label of the second node in the code.
bool isForward() const
Returns true if this EdgeCode is a forward edge.
EdgeCode & operator=(const EdgeCode &source)
Copy operator.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
Size l_i
The label of the first node in the code.