swh:1:snp:7a4cd2a5ec73a061be17605597c4b1660b799026
Tip revision: 121131be58bc1b6f91a4863bd01fe7cbd0439ab9 authored by Max Göttlicher on 16 August 2023, 15:14:58 UTC
readme
readme
Tip revision: 121131b
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