This iterator goes through each arc of a graph. Its usage is quite simple, for example you can count the number of arcs in a graph g of type Graph as follows:
#include <lemon/concepts/graph.h>
Inheritance diagram for Graph::ArcIt:Public Member Functions | |
| ArcIt () | |
| Default constructor. | |
| ArcIt (const ArcIt &e) | |
| ArcIt (Invalid) | |
| ArcIt (const Graph &g) | |
| This constructor sets the iterator to the first arc. | |
| ArcIt (const Graph &, const Arc &) | |
| Arc -> ArcIt conversion. | |
| ArcIt & | operator++ () |
| Next arc. | |
Public Member Functions inherited from Graph::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. | |
| operator Edge () const | |
| Converison to Edge. | |
|
inline |
This constructor sets the iterator to the first arc of g.
| g | the graph |
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