template<typename GR>
class lemon::DiEulerIt< GR >
This iterator provides an Euler tour (Eulerian circuit) of a directed graph (if there exists) and it converts to the Arc type of the digraph.
For example, if the given digraph has an Euler tour (i.e it has only one non-trivial component and the in-degree is equal to the out-degree for all nodes), then the following code will put the arcs of g to the vector et according to an Euler tour of g.
std::vector<ListDigraph::Arc> et;
et.push_back(e);
const Invalid INVALID
Invalid iterators.
Definition base.cc:32
DiEulerIt(const GR &gr, typename GR::Node start=INVALID)
Constructor.
Definition euler.h:77
If g has no Euler tour, then the resulted walk will not be closed or not contain all arcs.
- See also
- EulerIt