g
of type Graph
like this: int count=0; for (Graph::ANodeIt n(g); n!=INVALID; ++n) ++count;
#include <lemon/concepts/bpugraph.h>
Public Member Functions | |
ANodeIt () | |
Default constructor. | |
ANodeIt (const ANodeIt &n) | |
ANodeIt (Invalid) | |
Invalid constructor & conversion. | |
ANodeIt (const BpUGraph &) | |
Sets the iterator to the first node. | |
ANodeIt (const BpUGraph &, const Node &) | |
Node -> ANodeIt conversion. | |
ANodeIt & | operator++ () |
Next node. |
ANodeIt | ( | ) | [inline] |
Initialize the iterator to be invalid.
Sets the iterator to the node of the
graph pointed by the trivial iterator. This feature necessitates that each time we iterate the edge-set, the iteration order is the same.
ANodeIt& operator++ | ( | ) | [inline] |
Assign the iterator to the next node.