ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::PrototypeFrontier Concept Reference

the structure \( S \) of the prototype as a type: add( v , d , first ) puts v into S at the distance d, first if v was never reached; extract() takes a node out of S; update( v , d ) tells S that the distance of v, already in S, fell to d More...

#include <ADS/graph/ShortestPaths.h>

Concept definition

template< class S , class D >
concept PrototypeFrontier = requires( S s , int v , const D & d , bool b )
{
s.add( v , d , b );
{ s.extract() } -> std::convertible_to< int >;
s.update( v , d );
{ s.empty() } -> std::same_as< bool >;
}
the structure of the prototype as a type: add( v , d , first ) puts v into S at the distance d,...
Definition ShortestPaths.h:183

Detailed description

the structure \( S \) of the prototype as a type: add( v , d , first ) puts v into S at the distance d, first if v was never reached; extract() takes a node out of S; update( v , d ) tells S that the distance of v, already in S, fell to d