This iterator goes through each node of the graph. Its usage is quite simple, for example, you can count the number of nodes in a graph g of type BpGraph like this:
int count=0;
const Invalid INVALID
Invalid iterators.
Definition base.cc:32
Iterator class for the nodes.
Definition bpgraph.h:276
#include <lemon/concepts/bpgraph.h>
◆ NodeIt() [1/5]
Default constructor.
- Warning
- It sets the iterator to an undefined value.
◆ NodeIt() [2/5]
| NodeIt |
( |
const NodeIt & | n | ) |
|
|
inline |
◆ NodeIt() [3/5]
Initializes the iterator to be invalid.
- See also
- Invalid for more details.
◆ NodeIt() [4/5]
Sets the iterator to the first node of the given digraph.
◆ NodeIt() [5/5]
Sets the iterator to the given node of the given digraph.
◆ operator++()
Assign the iterator to the next node.