63 for (
const auto code: source.
codes)
71 for (
const auto item:
codes)
77 for (
const auto item:
codes)
80 for (
const auto srcitem: source.
codes)
89 for (
size_t idx = 0; idx <
codes.size(); ++idx) {
90 if ((*
codes[idx]) != (*
codes[idx])) {
return false; }
102 for (
size_t idx = 0; idx <
codes.size(); ++idx) {
103 if ((*
codes[idx]) != (*
codes[idx])) {
return true; }
117 for (; (iter !=
codes.end()) && (jter != from.
codes.end()); ++iter, ++jter) {
118 if ((**iter) != (**jter)) {
125 }
else if (alpha.
j < beta.
j) {
128 }
else if ((alpha.
j == beta.
j) && (alpha.
l_ij < beta.
l_ij)) {
137 }
else if (beta.
i < alpha.
i) {
140 }
else if (beta.
i == alpha.
i) {
141 if (alpha.
l_i < beta.
l_i) {
143 }
else if (alpha.
l_i == beta.
l_i) {
146 }
else if (alpha.
l_ij == beta.
l_ij) {
147 return alpha.
l_j < beta.
l_j;
155 return (**iter) < (**jter);
167 for (; (iter !=
codes.end()) && (jter != from.
codes.end()); ++iter, ++jter) {
168 if ((**iter) != (**jter)) {
return (**iter) < (**jter); }
DFSCode & operator=(const DFSCode &source)
Copy operator.
std::vector< EdgeCode * > codes
The vector containing the EdgeCode composing this DFSCode.
std::vector< EdgeCode * >::const_iterator const_iterator
Code alias.
bool operator==(const DFSCode &code) const
Equality operator.
bool operator<=(const DFSCode &code) const
Lesser or equal than operator.
bool operator<(const DFSCode &code) const
Lesser than operator.
DFSCode()
Default constructor.
bool operator!=(const DFSCode &code) const
Difference operator.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities
represent a DFS code used by gspan.
Size l_i
The label of the first node in the code.
NodeId i
The DFS subscript of the first node in the code.
Size l_ij
The label of the edge in the code.
bool isForward() const
Returns true if this EdgeCode is a forward edge.
NodeId j
The DFS subscript of the second node in the code.
bool isBackward() const
Returns true if this EdgeCode is a backward edge.
Size l_j
The label of the second node in the code.