|
My Project
|
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 Graph as follows.
#include <lemon/concepts/graph.h>
Public Member Functions | |
| IncEdgeIt () | |
| Default constructor. | |
| IncEdgeIt (const IncEdgeIt &e) | |
| Copy constructor. | |
| IncEdgeIt (Invalid) | |
| Invalid constructor & conversion. | |
| IncEdgeIt (const Graph &, const Node &) | |
| Sets the iterator to the first incident edge. | |
| IncEdgeIt (const Graph &, const Edge &) | |
| Sets the iterator to the given edge. | |
| IncEdgeIt & | operator++ () |
| Next incident edge. | |
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Initializes the iterator to be invalid.
|
inline |
Sets the iterator to the first incident edge of the given node.
|
inline |
Sets the iterator to the given edge of the given graph.
|
inline |
Assign the iterator to the next incident edge of the corresponding node.