Reader for graphs in Matrix Market format.
More...
#include <TNL/Graphs/Readers/MtxReader.h>
|
| static void | read (const std::string &file_name, Graph &graph) |
| | Reads a graph from a Matrix Market file.
|
template<typename
Graph>
struct TNL::Graphs::Readers::MtxReader< Graph >
Reader for graphs in Matrix Market format.
This reader uses TNL::Matrices::MatrixReader to read the adjacency matrix of the graph from a file in Matrix Market format (.mtx) and sets it as the adjacency matrix of the provided graph.
- Template Parameters
-
| Graph | The type of the graph to be read. |
◆ read()
Reads a graph from a Matrix Market file.
- Parameters
-
| file_name | is the name of the file containing the adjacency matrix in Matrix Market format. |
| graph | is the graph object to be populated. |
The documentation for this struct was generated from the following file:
- src/TNL/Graphs/Readers/MtxReader.h