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

#include <EdgeListCoverReader.h>

Public Member Functions

 EdgeListCoverReader (node firstNode=1)
 Constructs the EdgeListCoverReader class with firstNode as the index of the first node in the file. More...
 
virtual Cover read (std::string path, Graph &G)
 Read a cover from a file. More...
 

Constructor & Destructor Documentation

NetworKit::EdgeListCoverReader::EdgeListCoverReader ( NetworKit::node  firstNode = 1)

Constructs the EdgeListCoverReader class with firstNode as the index of the first node in the file.

Parameters
[in]firstNodeIndex of the first node in the file.

Member Function Documentation

NetworKit::Cover NetworKit::EdgeListCoverReader::read ( std::string  path,
Graph G 
)
virtual

Read a cover from a file.

File format: each line contains the node ids of one subset.

Parameters
[in]pathThe path to the input file
[in]GThe graph for which the cover shall be read
Returns
The cover instance

Reimplemented from NetworKit::CoverReader.


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