35 j(my_j), l_i(my_l_i), l_ij(my_l_ij), l_j(my_l_j) {
37 std::stringstream sBuff;
70 return ((
i == code.
i) && (
j == code.
j) && (
l_i == code.
l_i)
76 return ((
i != code.
i) || (
j != code.
j) || (
l_i != code.
l_i)
82 if ((
i == code.
i) && (
j == code.
j)) {
86 return ((
i == code.
i) && (
j < code.
j))
87 || ((
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.
gum is the global namespace for all aGrUM entities
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.