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

a graph whose compressed rows are plain arrays, offsets(), heads() and, if weighted, weightData(), which a library that takes the compressed rows (METIS, KaHIP, GraphBLAS) reads without a copy: a StaticGraph of the separate layout, or an ArrayGraph More...

#include <ADS/graph/StaticGraph.h>

Concept definition

template< class G >
concept CsrArrays = requires( const G & g )
{
{ g.offsets() } -> std::same_as< const int * >;
{ g.heads() } -> std::same_as< const int * >;
} && ( ( ! requires { requires G::weighted; } ) || requires( const G & g )
{
{
g.weightData()
} -> std::same_as< const typename G::Weight * >;
} )
a graph whose compressed rows are plain arrays, offsets(), heads() and, if weighted,...
Definition StaticGraph.h:585

Detailed description

a graph whose compressed rows are plain arrays, offsets(), heads() and, if weighted, weightData(), which a library that takes the compressed rows (METIS, KaHIP, GraphBLAS) reads without a copy: a StaticGraph of the separate layout, or an ArrayGraph