g
of type Graph
like this: int count=0; for (Graph::BNodeIt n(g); n!=INVALID; ++n) ++count;
#include <lemon/concepts/bpugraph.h>
Public Member Functions | |
BNodeIt () | |
Default constructor. | |
BNodeIt (const BNodeIt &n) | |
BNodeIt (Invalid) | |
Invalid constructor & conversion. | |
BNodeIt (const BpUGraph &) | |
Sets the iterator to the first node. | |
BNodeIt (const BpUGraph &, const Node &) | |
Node -> BNodeIt conversion. | |
BNodeIt & | operator++ () |
Next node. |
BNodeIt | ( | ) | [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.
BNodeIt& operator++ | ( | ) | [inline] |
Assign the iterator to the next node.