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