Program Listing for File DibapGraphReader.hpp

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

/*
 * DibapGraphReader.hpp
 *
 *  Created on: Jun 12, 2013
 *      Author: Henning
 */

#ifndef NETWORKIT_IO_DIBAP_GRAPH_READER_HPP_
#define NETWORKIT_IO_DIBAP_GRAPH_READER_HPP_

#ifndef NETWORKIT_WINDOWS

#include <vector>

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

namespace NetworKit {

class DibapGraphReader final : public GraphReader {
public:
    DibapGraphReader() = default;

    Graph read(std::string_view path) override;

    const std::vector<Point<coordinate>> &getCoordinates() const noexcept { return coordinates; }

    std::vector<Point<coordinate>> moveCoordinates() { return std::move(coordinates); }

private:
    std::vector<Point<coordinate>> coordinates;
};

} /* namespace NetworKit */

#endif // NETWORKIT_WINDOWS

#endif // NETWORKIT_IO_DIBAP_GRAPH_READER_HPP_