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

Dimacs header-reader for the graph_reader().Reads the header lines from the input file-stream. Skips over comment lines and reads number of vertices. format: More...

Public Member Functions

size_t operator() (std::ifstream &ifs) const
 

Public Types

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

Detailed Description

Dimacs header-reader for the graph_reader().

Reads the header lines from the input file-stream. Skips over comment lines and reads number of vertices. format:

/// c comments
/// c comments
/// p sp #vertices #edges
/// 

Member Function Documentation

◆ operator()()

size_t stapl::read_dimacs_header::operator() ( std::ifstream &  ifs) const
Parameters
ifsThe input file-stream.
Returns
Returns the number of vertices in the graph.

The documentation for this struct was generated from the following file: