Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StaticGraph::EdgeIt Class Reference

#include <lemon/concept/graph.h>

Inheritance diagram for StaticGraph::EdgeIt:

Inheritance graph
[legend]
Collaboration diagram for StaticGraph::EdgeIt:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 353 of file graph.h.

Public Member Functions

 EdgeIt ()
 Default constructor.
 EdgeIt (const EdgeIt &)
 Copy constructor.
 EdgeIt (Invalid)
 Initialize the iterator to be invalid.
 EdgeIt (const StaticGraph &g)
 This constructor sets the iterator to first edge.
 EdgeIt (const StaticGraph &, const Edge &)
 Edge -> EdgeIt conversion.
EdgeItoperator++ ()
 Next edge.


Constructor & Destructor Documentation

EdgeIt  )  [inline]
 

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

Definition at line 359 of file graph.h.

EdgeIt const EdgeIt  )  [inline]
 

Copy constructor.

Definition at line 364 of file graph.h.

EdgeIt Invalid   )  [inline]
 

Initialize the iterator to be invalid.

Definition at line 369 of file graph.h.

EdgeIt const StaticGraph g  )  [inline]
 

This constructor set the iterator to the first edge of node

Parameters:
g the graph

Definition at line 375 of file graph.h.

EdgeIt const StaticGraph ,
const Edge
[inline]
 

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

Definition at line 381 of file graph.h.


Member Function Documentation

EdgeIt& operator++  )  [inline]
 

Assign the iterator to the next edge of the corresponding node.

Definition at line 386 of file graph.h.


The documentation for this class was generated from the following file:
Generated on Sat Mar 19 10:58:56 2005 for LEMON by  doxygen 1.4.1