Program Listing for File EdgeListWriter.hpp

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

/*
 * EdgeListWriter.hpp
 *
 *  Created on: 18.06.2013
 *      Author: cls
 */

#ifndef NETWORKIT_IO_EDGE_LIST_WRITER_HPP_
#define NETWORKIT_IO_EDGE_LIST_WRITER_HPP_

#include <networkit/io/GraphWriter.hpp>

namespace NetworKit {

class EdgeListWriter final : public GraphWriter {

public:
    EdgeListWriter() = default; // nullary constructor for Python shell

    EdgeListWriter(char separator, node firstNode, bool bothDirections = false);

    void write(const Graph &G, const std::string &path) override;

private:
    char separator;
    node firstNode;
    bool bothDirections;
};

} /* namespace NetworKit */
#endif // NETWORKIT_IO_EDGE_LIST_WRITER_HPP_