All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EdgeListWriter.h
Go to the documentation of this file.
1 /*
2  * EdgeListWriter.h
3  *
4  * Created on: 18.06.2013
5  * Author: cls
6  */
7 
8 #ifndef EDGELISTWRITER_H_
9 #define EDGELISTWRITER_H_
10 
11 #include <fstream>
12 #include <iostream>
13 #include <string>
14 
15 #include "GraphReader.h"
16 
17 namespace NetworKit {
18 
27 
28 public:
29 
30  EdgeListWriter() = default; //nullary constructor for Python shell
31 
38 
44  void write(const Graph& G, std::string path);
45 
46 protected:
47 
48  char separator;
51 };
52 
53 } /* namespace NetworKit */
54 #endif /* EDGELISTIO_H_ */
char separator
character separating nodes in an edge line
Definition: EdgeListWriter.h:48
void write(const Graph &G, std::string path)
Write the graph to a file.
Definition: EdgeListWriter.cpp:19
A writer for the edge list format.
Definition: EdgeListWriter.h:26
bool bothDirections
Definition: EdgeListWriter.h:50
index node
Definition: Globals.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
node firstNode
Definition: EdgeListWriter.h:49