35 #ifndef GUM_DFS_CODE_H 36 # define GUM_DFS_CODE_H 128 typedef std::vector< EdgeCode* >::iterator
iterator;
145 return (e2->
i <= e1->
i) && (e2->
j = (e1->
i + 1));
147 return (e2->
i == e1->
i) && (e1->
j < e2->
j);
152 return (e2->
i <= e1->
j) && (e2->
j == (e1->
j + 1));
154 return (e2->
i == e1->
j) && (e2->
j < e1->
i);
163 # ifndef GUM_NO_INLINE 165 # endif // GUM_NO_INLINE bool operator<(const DFSCode &code) const
Lesser than operator.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
NodeId i
The DFS subscript of the first node in the code.
std::ostream & operator<<(std::ostream &out, const DFSCode &code)
Print code in out.
bool operator==(const DFSCode &code) const
Equality operator.
bool operator<=(const DFSCode &code) const
Lesser or equal than operator.
NodeId j
The DFS subscript of the second node in the code.
Reprensent a Depth First Search coding of a graph.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DFSCode & operator=(const DFSCode &source)
Copy operator.
std::vector< EdgeCode *> codes
The vector containing the EdgeCode composing this DFSCode.
represent a DFS code used by gspan.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool isBackward() const
Returns true if this EdgeCode is a backward edge.
bool operator!=(const DFSCode &code) const
Difference operator.
bool isForward() const
Returns true if this EdgeCode is a forward edge.
DFSCode()
Default constructor.
static bool validNeighbors(EdgeCode *e1, EdgeCode *e2)
Returns true of e2 is a valid neighbor for e1 (i.e.
std::vector< EdgeCode *>::iterator iterator
Code alias.
std::vector< EdgeCode *>::const_iterator const_iterator
Code alias.