|
Template Numerical Library version\ main:7388705
|
Reader for graphs in Matrix Market format. More...
#include <TNL/Graphs/Readers/MtxReader.h>
Public Types | |
| using | DeviceType = typename Graph::DeviceType |
| using | IndexType = typename Graph::IndexType |
| using | MatrixType = typename Graph::AdjacencyMatrixType |
| using | ValueType = typename Graph::ValueType |
Static Public Member Functions | |
| static void | read (const std::string &file_name, Graph &graph) |
| Reads a graph from a Matrix Market file. | |
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.
| Graph | The type of the graph to be read. |
|
inlinestatic |
Reads a graph from a Matrix Market file.
| file_name | is the name of the file containing the adjacency matrix in Matrix Market format. |
| graph | is the graph object to be populated. |