Template Class GenericMETISGraphReader

Inheritance Relationships

Base Type

Class Documentation

template<class GraphT>
class GenericMETISGraphReader : public NetworKit::GraphReaderBase<GraphT>

Reader for the METIS file format documented in [1]

The file does not store the node and edge weight types: they are given by GraphT. Reading fails if the number of nodes does not fit into GraphT::NodeT, or if GraphT::EdgeWeightT is integral and an edge weight in the file is not an integer representable by it.

[1] http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/manual.pdf

Public Functions

GenericMETISGraphReader() = default
virtual GraphT read(std::string_view path) override

Takes a file path as parameter and returns a graph file.

Parameters:
  • path – [in] file path

  • the – [out] graph read from file