graphio.hpp
//
// Created by max on 31.08.22.
//
#ifndef PDS_GRAPHIO_HPP
#define PDS_GRAPHIO_HPP
#include <mpgraphs/graph.hpp>
#include <pds.hpp>
#include <fstream>
#include <filesystem>
#include <range/v3/all.hpp>
namespace pds {
PowerGrid readEdgeList(const std::string& filename, bool allZeroInjection = false);
PowerGrid readPtxt(const std::string& filename, bool allZeroInjection = false);
PowerGrid readGraphML(const std::string& filename, bool allZeroInjection = false);
PowerGrid readAutoGraph(const std::string& filename, bool allZeroInjection = false);
PowerGrid readPds(const std::string& filename, bool allZeroInjection = false);
void writePds(const PowerGrid& grid, const std::string& filename);
}
#endif //PDS_GRAPHIO_HPP