All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
BpGraph::EdgeIt Class Reference

Detailed Description

This iterator goes through each edge of the graph. Its usage is quite simple, for example, you can count the number of edges in a graph g of type BpGraph as follows:

int count=0;
for(BpGraph::EdgeIt e(g); e!=INVALID; ++e) ++count;

#include <lemon/concepts/bpgraph.h>

+ Inheritance diagram for BpGraph::EdgeIt:

Public Member Functions

 EdgeIt ()
 Default constructor.
 
 EdgeIt (const EdgeIt &e)
 
 EdgeIt (Invalid)
 Invalid constructor & conversion.
 
 EdgeIt (const BpGraph &)
 Sets the iterator to the first edge.
 
 EdgeIt (const BpGraph &, const Edge &)
 Sets the iterator to the given edge.
 
EdgeItoperator++ ()
 Next edge.
 
- Public Member Functions inherited from BpGraph::Edge
 Edge ()
 Default constructor.
 
 Edge (const Edge &)
 
 Edge (Invalid)
 Invalid constructor & conversion.
 
bool operator== (Edge) const
 Equality operator.
 
bool operator!= (Edge) const
 
bool operator< (Edge) const
 Artificial ordering operator.
 

Constructor & Destructor Documentation

EdgeIt ( )
inline

Default constructor.

Warning
It sets the iterator to an undefined value.
EdgeIt ( const EdgeIt e)
inline

Copy constructor.

EdgeIt ( Invalid  )
inline

Initializes the iterator to be invalid.

See Also
Invalid for more details.
EdgeIt ( const BpGraph )
inlineexplicit

Sets the iterator to the first edge of the given graph.

EdgeIt ( const BpGraph ,
const Edge  
)
inline

Sets the iterator to the given edge of the given graph.

Member Function Documentation

EdgeIt& operator++ ( )
inline

Assign the iterator to the next edge.