ConArcIt

Declared in lemon/core.h, in the group Basic Graph Utilities; the same class on the Doxygen site.

template< typename GR >
class ConArcIt : public Arc

Iterator for iterating on parallel arcs connecting the same nodes. It is a higher level interface for the findArc() function. You can use it the following way:

for( ConArcIt< Graph > it( g , src , trg ) ; it != INVALID ; ++it )
{
 ...
 }

See also

findArc()

Public Types

typedef GR::Arc Arc
typedef GR::Node Node

Public Functions

inline ConArcIt( const GR & g , Node u , Node v )

Constructor.

Construct a new ConArcIt iterating on the arcs that connects nodes u and v.

inline ConArcIt( const GR & g , Arc a )

Constructor.

Construct a new ConArcIt that continues the iterating from arc a.

inline ConArcIt & operator++()

Increment operator.

It increments the iterator and gives back the next arc.