return( c + this->_GetOutputValue( n.Parent ) );
}
-// -------------------------------------------------------------------------
-template< class _TAlgorithm >
-void fpa::Base::DijkstraBase< _TAlgorithm >::
-_QueueInit( )
-{
- typedef typename Superclass::TSeedsInterface::TSeeds::iterator _TIt;
-
- this->Superclass::_QueueInit( );
- for( _TIt sIt = this->BeginSeeds( ); sIt != this->EndSeeds( ); ++sIt )
- sIt->Value = TOutputValue( 0 );
-}
-
// -------------------------------------------------------------------------
template< class _TAlgorithm >
void fpa::Base::DijkstraBase< _TAlgorithm >::
return( this->m_Queue.size( ) );
}
+// -------------------------------------------------------------------------
+template< class _TAlgorithm >
+void fpa::Base::DijkstraBase< _TAlgorithm >::
+_PrepareSeeds( TNodes& nodes )
+{
+ typename TNodes::iterator nIt = nodes.begin( );
+ for( ; nIt != nodes.end( ); ++nIt )
+ nIt->Value = TOutputValue( 0 );
+}
+
#endif // __fpa__Base__DijkstraBase__hxx__
// eof - $RCSfile$