All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SNAPGraphReader.h
Go to the documentation of this file.
1 /*
2  * SNAPGraphReader.h
3  *
4  * Created on: 19.05.2014
5  * Author: Maximilian Vogel
6  */
7 
8 #ifndef SNAPGRAPHREADER_H_
9 #define SNAPGRAPHREADER_H_
10 
11 //#include <unordered_set>
12 //#include <vector>
13 //#include <fstream>
14 
15 #include <unordered_map>
16 
17 #include "../graph/Graph.h"
18 #include "../structures/Partition.h"
19 #include "GraphReader.h"
20 
21 namespace NetworKit {
22 
27 protected:
28  std::unordered_map<node,node> mapNodeIds;
29 
30 public:
31 
33  SNAPGraphReader() = default;
34 
35  virtual Graph read(const std::string& path) override;
36 
37  std::unordered_map<node,node> getNodeIdMap();
38 
39 };
40 
41 } /* namespace NetworKit */
42 #endif /* SNAPGRAPHREADER_H_ */
Abstract base class for graph readers.
Definition: GraphReader.h:21
SNAPGraphReader()=default
Default constructor.
std::unordered_map< node, node > getNodeIdMap()
Definition: SNAPGraphReader.cpp:123
virtual Graph read(const std::string &path) override
Given the path of an input file, read the graph contained.
Definition: SNAPGraphReader.cpp:17
std::unordered_map< node, node > mapNodeIds
Definition: SNAPGraphReader.h:28
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
Definition: SNAPGraphReader.h:26