Class EdgeListCoverReader

Inheritance Relationships

Base Type

Class Documentation

class EdgeListCoverReader : public NetworKit::CoverReader

Public Functions

EdgeListCoverReader(node firstNode = 1)

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

Parameters:

firstNode[in] Index of the first node in the file.

virtual Cover read(std::string_view path, Graph &G) override

Read a cover from a file. File format: each line contains the node ids of one subset.

Parameters:
  • path[in] The path to the input file

  • G[in] The graph for which the cover shall be read

Returns:

The cover instance