Adjacency-list line-reader functor for the graph_reader().Reads a vertex and its adjacencies from the input line (stream). format:
More...
|
template<typename Aggr , typename Graph > |
size_t | operator() (std::stringstream &ss, Aggr &aggr, Graph *g) const |
|
Adjacency-list line-reader functor for the graph_reader().
Reads a vertex and its adjacencies from the input line (stream). format:
/// #vertices #edges
/// source0 target00 target01 target02 ...
/// source1 target10 target11 target12 ...
/// :
///
◆ operator()()
template<typename Aggr , typename Graph >
size_t stapl::read_adj_list_line::operator() |
( |
std::stringstream & |
ss, |
|
|
Aggr & |
aggr, |
|
|
Graph * |
g |
|
) |
| const |
- Parameters
-
ss | The stringstream representing a line from the input file. |
aggr | The edge-aggregator to output the read edges to. |
g | A pointer to the output graph. The edges may be added to the graph, or additional operations performed (i.e., setting properties for vertices and edges, etc.) |
- Returns
- '0' for success, '1' for failure.
The documentation for this struct was generated from the following file: