66 for (
const auto code: source.
codes)
74 for (
const auto item:
codes)
80 for (
const auto item:
codes)
83 for (
const auto srcitem: source.
codes)
94 for (; (iter !=
codes.end()) && (jter != from.
codes.end()); ++iter, ++jter) {
95 if ((**iter) != (**jter)) {
return (**iter) < (**jter); }
104 return (e2->
i <= e1->
i) && (e2->
j = (e1->
i + 1));
106 return (e2->
i == e1->
i) && (e1->
j < e2->
j);
111 return (e2->
i <= e1->
j) && (e2->
j == (e1->
j + 1));
113 return (e2->
i == e1->
j) && (e2->
j < e1->
i);
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
Lesser or equal than operator.
DFSCode()
Default constructor.
static bool validNeighbors(EdgeCode *e1, EdgeCode *e2)
Returns true of e2 is a valid neighbor for e1 (i.e.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities
represent a DFS code used by gspan.
NodeId i
The DFS subscript of the first node 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.