the offsets and the heads of a graph as arrays of X, and its weights as an array of Y, in place where the layouts agree and copied otherwise
More...
#include <ADS/interop/Csr.h>
|
| template<class G> |
| | CsrInput (const G &g, bool weights=true) |
| | the arrays of \( g \), with its weights if weights and if the graph is weighted; \( g \) must outlive the input and not change
|
| | CsrInput (const CsrInput &)=delete |
| CsrInput & | operator= (const CsrInput &)=delete |
| const X * | offsets (void) const |
| | the \( n + 1 \) offsets of the rows
|
| const X * | heads (void) const |
| | the heads of the arcs, row by row
|
| const Y * | weights (void) const |
| | the weights of the arcs in the places of the heads, null if the graph is unweighted or they were not asked
|
| const Copies & | copied (void) const |
| | which arrays were copied
|
template<class X, class Y = X>
class ADS::CsrInput< X, Y >
the offsets and the heads of a graph as arrays of X, and its weights as an array of Y, in place where the layouts agree and copied otherwise
◆ CsrInput() [1/2]
template<class X, class Y = X>
template<class G>
| ADS::CsrInput< X, Y >::CsrInput |
( |
const G & | g, |
|
|
bool | weights = true ) |
|
inlineexplicit |
the arrays of \( g \), with its weights if weights and if the graph is weighted; \( g \) must outlive the input and not change
◆ CsrInput() [2/2]
template<class X, class Y = X>
◆ copied()
template<class X, class Y = X>
◆ heads()
template<class X, class Y = X>
the heads of the arcs, row by row
◆ offsets()
template<class X, class Y = X>
the \( n + 1 \) offsets of the rows
◆ operator=()
template<class X, class Y = X>
◆ weights()
template<class X, class Y = X>
the weights of the arcs in the places of the heads, null if the graph is unweighted or they were not asked
The documentation for this class was generated from the following file: