Writer for graphs in edge list format.
More...
#include <TNL/Graphs/Writers/EdgeListWriter.h>
|
| static void | write (const TNL::String &fileName, const Graph &graph) |
| | Writes a graph to a file in edge list format.
|
| static void | write (std::ostream &str, const Graph &graph) |
| | Writes a graph to an output stream in edge list format.
|
|
|
template<typename Matrix> |
| static void | writeEdgeList (std::ostream &str, const Matrix &matrix) |
template<typename
Graph>
struct TNL::Graphs::Writers::EdgeListWriter< Graph >
Writer for graphs in edge list format.
See TNL::Graphs::Readers::EdgeListReader for details about the format.
- Template Parameters
-
| Graph | The type of the graph to be written. |
◆ write() [1/2]
Writes a graph to a file in edge list format.
- Parameters
-
| fileName | is the name of the file to write to. |
| graph | is the graph object to be written. |
◆ write() [2/2]
Writes a graph to an output stream in edge list format.
- Parameters
-
| str | is the output stream to write to. |
| graph | is the graph object to be written. |
The documentation for this struct was generated from the following file:
- src/TNL/Graphs/Writers/EdgeListWriter.h