TVertices fpa::Base::MinimumSpanningTree< _TVertex, _Superclass >::
GetPath( const _TVertex& a, const _TVertex& b ) const
{
-#error no hace bien el backtracking!
static const unsigned long _inf =
std::numeric_limits< unsigned long >::max( );
{
// First path: from start vertex to first collision
vertices = this->GetPath(
- a, this->m_Collisions[ fpath[ 1 ] ][ fpath[ 0 ] ].first
+ a, this->m_Collisions[ fpath[ 0 ] ][ fpath[ 1 ] ].first
);
// Intermediary paths
{
TVertices ipath =
this->GetPath(
- this->m_Collisions[ fpath[ i ] ][ fpath[ i - 1 ] ].first,
- this->m_Collisions[ fpath[ i ] ][ fpath[ i + 1 ] ].first
+ this->m_Collisions[ fpath[ i - 1 ] ][ fpath[ i ] ].first,
+ this->m_Collisions[ fpath[ i + 1 ] ][ fpath[ i ] ].first
);
for( long id = 0; id < ipath.size( ); ++id )
vertices.push_back( ipath[ id ] );
// Final path: from last collision to end point
TVertices lpath =
this->GetPath(
- this->m_Collisions[ fpath[ N - 2 ] ][ fpath[ N - 1 ] ].first, b
+ this->m_Collisions[ fpath[ N - 1 ] ][ fpath[ N - 2 ] ].first, b
);
for( long id = 0; id < lpath.size( ); ++id )
vertices.push_back( lpath[ id ] );
#ifndef __fpa__Base__SingleSeedInterface__hxx__
#define __fpa__Base__SingleSeedInterface__hxx__
+// -------------------------------------------------------------------------
+template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
+typename
+fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
+TSeeds&
+fpa::Base::SingleSeedInterface< _TVertex, _TPoint, _TInputValue, _TOutputValue, _TFrontId, _TCompare >::
+GetSeeds( )
+{
+ return( this->m_Seeds );
+}
+
// -------------------------------------------------------------------------
template< class _TVertex, class _TPoint, class _TInputValue, class _TOutputValue, class _TFrontId, class _TCompare >
const typename