Program Listing for File SNAPGraphReader.hpp

Return to documentation for file (include/networkit/io/SNAPGraphReader.hpp)

/*
 * SNAPGraphReader.hpp
 *
 *  Created on: 04.05.2018
 *      Author: Alexander van der Grinten
 */

#ifndef NETWORKIT_IO_SNAP_GRAPH_READER_HPP_
#define NETWORKIT_IO_SNAP_GRAPH_READER_HPP_

#include <unordered_map>

#include <networkit/graph/Graph.hpp>
#include <networkit/io/GraphReader.hpp>

namespace NetworKit {

class SNAPGraphReader final : public GraphReader {
    std::unordered_map<node, node> nodeIdMap;
    bool directed;
    count nodeCount;
    bool remapNodes;

public:
    SNAPGraphReader(bool directed = false, const bool &remapNodes = true,
                    const count &nodeCount = 0);

    Graph read(std::string_view path) override;
};

} /* namespace NetworKit */

#endif // NETWORKIT_IO_SNAP_GRAPH_READER_HPP_