My Project
List of all members | Public Member Functions
ConArcIt< GR > Class Template Reference

Detailed Description

template<typename GR>
class lemon::ConArcIt< GR >

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()
ArcLookUp, AllArcLookUp, DynArcLookUp

#include <lemon/core.h>

Inherits Arc.

Public Member Functions

 ConArcIt (const GR &g, Node u, Node v)
 Constructor. More...
 
 ConArcIt (const GR &g, Arc a)
 Constructor. More...
 
ConArcItoperator++ ()
 Increment operator. More...
 

Constructor & Destructor Documentation

◆ ConArcIt() [1/2]

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

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

◆ ConArcIt() [2/2]

ConArcIt ( const GR &  g,
Arc  a 
)
inline

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

Member Function Documentation

◆ operator++()

ConArcIt& operator++ ( )
inline

It increments the iterator and gives back the next arc.

lemon::INVALID
const Invalid INVALID
Invalid iterators.
Definition: base.cc:32