GenerateData( )
{
// Init objects
- this->_ConfigureOutputs( TOutputValue( 0 ) );
+ this->_ConfigureOutputs( std::numeric_limits< TOutputValue >::max( ) );
this->_InitMarks( this->GetNumberOfSeeds( ) );
TMST* mst = this->GetMinimumSpanningTree( );
// Add neighborhood
TVertices neighbors = this->_GetNeighbors( node.Vertex );
- 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
// Complete data into minimum spanning tree
mst->ClearSeeds( );
mst->SetCollisions( this->m_Collisions );
- for( TVertex seed: this->GetSeeds( ) )
- mst->AddSeed( seed );
+ for( sIt = this->BeginSeeds( ); sIt != this->EndSeeds( ); ++sIt )
+ mst->AddSeed( *sIt );
}
#endif // __fpa__Base__Dijkstra__hxx__