UGraph::UEdgeIt Class Reference

#include <lemon/concepts/ugraph.h>

Inherits UGraph::UEdge.

Inheritance diagram for UGraph::UEdgeIt:

Inheritance graph
[legend]
List of all members.

Detailed Description

This iterator goes through each undirected edge of a graph. Its usage is quite simple, for example you can count the number of undirected edges in a graph g of type Graph as follows:
          int count=0;
          for(Graph::UEdgeIt e(g); e!=INVALID; ++e) ++count;


Public Member Functions

 UEdgeIt ()
 Default constructor.
 UEdgeIt (const UEdgeIt &e)
 Copy constructor.
 UEdgeIt (Invalid)
 Initialize the iterator to be invalid.
 UEdgeIt (const UGraph &)
 This constructor sets the iterator to the first undirected edge.
 UEdgeIt (const UGraph &, const UEdge &)
 UEdge -> UEdgeIt conversion.
UEdgeItoperator++ ()
 Assign the iterator to the next undirected edge.


Constructor & Destructor Documentation

UEdgeIt (  )  [inline]

Warning:
The default constructor sets the iterator to an undefined value.

UEdgeIt ( const UEdgeIt e  )  [inline]

Copy constructor.

UEdgeIt ( Invalid   )  [inline]

Initialize the iterator to be invalid.

UEdgeIt ( const UGraph ,
const UEdge  
) [inline]

Sets the iterator to the value of the trivial iterator. This feature necessitates that each time we iterate the undirected edge-set, the iteration order is the same.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:51 2006 for LEMON by  doxygen 1.5.1