STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::read_edge_list_line Struct Reference

Edge-list line-reader functor for the graph_reader().Reads an edge (source and target) from the input line (stream). EdgeList format: #edge-source #edge-target format: More...

Public Member Functions

template<typename Aggr , typename Graph >
size_t operator() (std::stringstream &ss, Aggr &aggr, Graph *g) const
 

Public Types

using has_edge_property = std::false_type
 Lines do not have properties for edges.
 

Detailed Description

Edge-list line-reader functor for the graph_reader().

Reads an edge (source and target) from the input line (stream). EdgeList format: #edge-source #edge-target format:

/// #vertices #edges
/// source0 target0
/// source1 target1
/// :
/// 

Member Function Documentation

◆ operator()()

template<typename Aggr , typename Graph >
size_t stapl::read_edge_list_line::operator() ( std::stringstream &  ss,
Aggr &  aggr,
Graph *  g 
) const
Parameters
ssThe stringstream representing a line from the input file.
aggrThe edge-aggregator to output the read edges to.
gA 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: