|
Template Numerical Library version\ main:4e6e2c1
|
Reader for graphs in edge list format. More...
#include <TNL/Graphs/Readers/EdgeListReader.h>
Public Types | |
| using | DeviceType = typename Graph::DeviceType |
| using | IndexType = typename Graph::IndexType |
| using | ValueType = typename Graph::ValueType |
Static Public Member Functions | |
| static void | read (const std::string &file_name, Graph &graph) |
| Reads a graph from an edge list file. | |
Reader for graphs in edge list format.
This reader reads a graph from a file in edge list format, where each line represents an edge between two vertices, optionally with a weight. Lines starting with '#' are treated as comments and ignored.
Example of weighted edge list format:
Example of unweighted edge list format:
| Graph | The type of the graph to be read. |
|
inlinestatic |
Reads a graph from an edge list file.
| file_name | is the name of the file containing the edge list. |
| graph | is the graph object to be populated. |