This iterator goes through each arc of a digraph. Its usage is quite simple, for example you can count the number of arcs in a digraph g of type Digraph as follows:
#include <lemon/concepts/digraph.h>
Inheritance diagram for Digraph::ArcIt:Public Member Functions | |
| ArcIt () | |
| Default constructor. | |
| ArcIt (const ArcIt &e) | |
| ArcIt (Invalid) | |
| ArcIt (const Digraph &g) | |
| This constructor sets the iterator to the first arc. | |
| ArcIt (const Digraph &, const Arc &) | |
| Arc -> ArcIt conversion. | |
| ArcIt & | operator++ () |
| Next arc. | |
Public Member Functions inherited from Digraph::Arc | |
| Arc () | |
| Default constructor. | |
| Arc (const Arc &) | |
| Arc (Invalid) | |
| bool | operator== (Arc) const |
| Equality operator. | |
| bool | operator!= (Arc) const |
| Inequality operator. | |
| bool | operator< (Arc) const |
| Artificial ordering operator. | |
|
inline |
This constructor sets the iterator to the first arc of g.
| g | the digraph |
Sets the iterator to the value of the trivial iterator e. This feature necessitates that each time we iterate the arc-set, the iteration order is the same.
|
inline |
Assign the iterator to the next arc.
1.8.2