typedef std::pair< TVertex, unsigned long > _TNode;
std::queue< _TNode > queues[ 2 ];
unsigned long frontId = 1;
- for( TVertex seed: this->GetSeeds( ) )
- queues[ 0 ].push( _TNode( seed, frontId++ ) );
+ typename TSeedsInterface::TSeeds::const_iterator sIt = this->BeginSeeds( );
+ for( ; sIt != this->EndSeeds( ); ++sIt )
+ queues[ 0 ].push( _TNode( *sIt, frontId++ ) );
unsigned int cur_queue = 0;
unsigned int aux_queue = 1;
// Add neighborhood
TVertices neighbors = this->_GetNeighbors( node.first );
- for( TVertex neigh: neighbors )
+ typename TVertices::const_iterator neighIt = neighbors.begin( );
+ for( ; neighIt != neighbors.end( ); ++neighIt )
{
+ TVertex neigh = *neighIt;
if( this->_IsMarked( neigh ) )
{
// Invoke stop at collisions