This iterator goes through each red node of the graph. Its usage is quite simple, for example, you can count the number of red 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 red nodes.
Definition bpgraph.h:190
#include <lemon/concepts/bpgraph.h>
◆ RedNodeIt() [1/5]
Default constructor.
- Warning
- It sets the iterator to an undefined value.
◆ RedNodeIt() [2/5]
| RedNodeIt |
( |
const RedNodeIt & | n | ) |
|
|
inline |
◆ RedNodeIt() [3/5]
Initializes the iterator to be invalid.
- See also
- Invalid for more details.
◆ RedNodeIt() [4/5]
Sets the iterator to the first red node of the given digraph.
◆ RedNodeIt() [5/5]
Sets the iterator to the given red node of the given digraph.
◆ operator++()
Assign the iterator to the next red node.