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

GRAPH (section 9.2), as far as the visits need it: the nodes, the adjacent nodes of a node, the range \( [ 0 , \mathrm{bound}() ) \) of the names. More...

#include <ADS/graph/Graph.h>

Concept definition

template< class G >
concept Graph = requires( const G g , int u )
{
{ g.n() } -> std::convertible_to< int >;
{ g.bound() } -> std::convertible_to< int >;
{ g.directed() } -> std::same_as< bool >;
{ g.hasNode( u ) } -> std::same_as< bool >;
{ g.V() } -> std::same_as< std::vector< int > >;
{ g.adj( u ) } -> std::same_as< std::vector< int > >;
g.forEachAdj( u , []( int ) { } );
}
GRAPH (section 9.2), as far as the visits need it: the nodes, the adjacent nodes of a node,...
Definition Graph.h:90

Detailed description

GRAPH (section 9.2), as far as the visits need it: the nodes, the adjacent nodes of a node, the range \( [ 0 , \mathrm{bound}() ) \) of the names.