↰ Return to documentation for file (include/networkit/io/MatrixReader.hpp
)
/*
* MatrixReader.hpp
*
* Created on: 17.01.2013
* Author: Christian Staudt
*/
#ifndef NETWORKIT_IO_MATRIX_READER_HPP_
#define NETWORKIT_IO_MATRIX_READER_HPP_
#include <networkit/algebraic/CSRMatrix.hpp>
namespace NetworKit {
class MatrixReader {
public:
virtual ~MatrixReader() = default;
virtual CSRMatrix read(std::string_view path) = 0;
CSRMatrix *_read(std::string_view path) { return new CSRMatrix{read(path)}; };
};
} // namespace NetworKit
#endif // NETWORKIT_IO_MATRIX_READER_HPP_