swh:1:snp:7a4cd2a5ec73a061be17605597c4b1660b799026
Tip revision: c7bbaa279bdeb6124b591020b1d7577391139bf5 authored by Max Göttlicher on 24 November 2022, 12:34:21 UTC
fixed more gcc errors and warnings
fixed more gcc errors and warnings
Tip revision: c7bbaa2
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