All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NetworKit::METISParser Class Reference

Parser for the METIS file format. More...

#include <METISParser.h>

Public Member Functions

 METISParser (std::string path)
 Constructor for the METIS Parser. More...
 
std::tuple< count, count,
index, count
getHeader ()
 Get the METIS graph file header. More...
 
bool hasNext ()
 Test if graph file has a next line. More...
 
std::vector< nodegetNext (count ignoreFirst=0)
 Get adjacencies from the next line in the METIS graph file. More...
 
std::vector< std::pair< node,
double > > 
getNextWithWeights (count ignoreFirst=0)
 Get adjacencies with edge weights from the next line in the METIS graph file. More...
 

Protected Attributes

std::ifstream graphFile
 

Detailed Description

Parser for the METIS file format.

Constructor & Destructor Documentation

NetworKit::METISParser::METISParser ( std::string  path)

Constructor for the METIS Parser.

Parameters
[in]pathfile path

Member Function Documentation

std::tuple< count, count, index, count > NetworKit::METISParser::getHeader ( )

Get the METIS graph file header.

std::vector< node > NetworKit::METISParser::getNext ( count  ignoreFirst = 0)

Get adjacencies from the next line in the METIS graph file.

Parameters
[in]ignoreFirstnumber of values to ignore [in case the METIS file contains node weightes]
std::vector< std::pair< node, double > > NetworKit::METISParser::getNextWithWeights ( count  ignoreFirst = 0)

Get adjacencies with edge weights from the next line in the METIS graph file.

Parameters
[in]ignoreFirstnumber of values to ignore [in case the METIS file contains node weightes]
bool NetworKit::METISParser::hasNext ( )

Test if graph file has a next line.

Member Data Documentation

std::ifstream NetworKit::METISParser::graphFile
protected

The documentation for this class was generated from the following files: