Program Listing for File BinaryEdgeListPartitionWriter.hpp

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

#ifndef NETWORKIT_IO_BINARY_EDGE_LIST_PARTITION_WRITER_HPP_
#define NETWORKIT_IO_BINARY_EDGE_LIST_PARTITION_WRITER_HPP_

#include <string>

#include <networkit/structures/Partition.hpp>

namespace NetworKit {

class BinaryEdgeListPartitionWriter final {
public:
    BinaryEdgeListPartitionWriter(node firstNode = 0, uint8_t width = 4);

    void write(Partition &zeta, std::string_view path) const;

private:
    node firstNode;
    uint8_t width;
};
} /* namespace NetworKit */

#endif // NETWORKIT_IO_BINARY_EDGE_LIST_PARTITION_WRITER_HPP_