All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
NetworKit::GraphIO Class Reference

#include <GraphIO.h>

Public Member Functions

virtual void writeEdgeList (Graph &G, std::string path)
 Writes graph to text file in edge list format. More...
 
virtual void writeAdjacencyList (Graph &G, std::string path)
 Writes graph to text file in adjacency list format. More...
 

Member Function Documentation

void NetworKit::GraphIO::writeAdjacencyList ( Graph G,
std::string  path 
)
virtual

Writes graph to text file in adjacency list format.

Parameters
[in]Ggraph
[in]pathfile path

Adjacency list format: for each node v: write "v" write " x" for each edge {v, x} end line

void NetworKit::GraphIO::writeEdgeList ( Graph G,
std::string  path 
)
virtual

Writes graph to text file in edge list format.

Keep in mind that isolated nodes are ignored.

Parameters
[in]Ggraph
[in]pathfile path

Edge list format: for each edge {u, v}: write line "u v"


The documentation for this class was generated from the following files: