This iterator goes trough the incident undirected edges of a certain node of a graph. Its usage is quite simple, for example, you can compute the degree (i.e. the number of incident edges) of a node n
in a graph g
of type BpGraph
as follows.
#include <lemon/concepts/bpgraph.h>
Public Member Functions | |
IncEdgeIt () | |
Default constructor. More... | |
IncEdgeIt (const IncEdgeIt &e) | |
Copy constructor. More... | |
IncEdgeIt (Invalid) | |
Invalid constructor & conversion. More... | |
IncEdgeIt (const BpGraph &, const Node &) | |
Sets the iterator to the first incident edge. More... | |
IncEdgeIt (const BpGraph &, const Edge &) | |
Sets the iterator to the given edge. More... | |
IncEdgeIt & | operator++ () |
Next incident edge. More... | |
Public Member Functions inherited from BpGraph::Edge | |
Edge () | |
Default constructor. More... | |
Edge (const Edge &) | |
Copy constructor. More... | |
Edge (Invalid) | |
Invalid constructor & conversion. More... | |
bool | operator== (Edge) const |
Equality operator. More... | |
bool | operator!= (Edge) const |
Inequality operator. More... | |
bool | operator< (Edge) const |
Artificial ordering operator. More... | |
|
inline |
Default constructor.
Initializes the iterator to be invalid.
Sets the iterator to the first incident edge of the given node.
Sets the iterator to the given edge of the given graph.
|
inline |
Assign the iterator to the next incident edge of the corresponding node.