8 #ifndef CMR_GRAPH_IO_HPP 9 #define CMR_GRAPH_IO_HPP 23 const std::string &tour_nodes_fname);
27 const std::vector<Graph::Edge> &edges,
29 const std::string &tour_edges_fname);
33 const std::vector<double> &lp_ecap,
35 const std::string &lp_edges_fname);
38 void write_xy_coords(
const double *x,
const double *y,
const int ncount,
39 const std::string &xy_coords_fname);
42 void get_tour_nodes(
const int node_count, std::vector<int> &tour_nodes,
43 const std::string &tour_nodes_fname);
47 void get_lp_sol(
const int node_count, std::vector<int> &support_elist,
48 std::vector<double> &support_ecap,
49 const std::string &lp_sol_fname);
void write_xy_coords(const double *x, const double *y, const int ncount, const std::string &xy_coords_fname)
Dumps the xy-coordinates for nodes in a graph.
Definition: io_util.cpp:195
void get_tour_nodes(const int node_count, std::vector< int > &tour_nodes, const std::string &tour_nodes_fname)
Load a tour from file.
Definition: io_util.cpp:241
Header for classes/structures/functions to work with graphs.
void get_lp_sol(const int node_count, std::vector< int > &support_elist, std::vector< double > &support_ecap, const std::string &lp_sol_fname)
Loads an lp solution from file.
Definition: io_util.cpp:328
void write_tour_nodes(const std::vector< int > &tour_nodes, const std::string &tour_nodes_fname)
Writes a tour to file.
Definition: io_util.cpp:34
The namespace for this project.
Definition: abc_nodesel.hpp:20
void write_tour_edges(const std::vector< int > &tour_edges, const std::vector< Graph::Edge > &edges, const int node_count, const std::string &tour_edges_fname)
Writes tour edges to file.
Definition: io_util.cpp:86
void write_lp_edges(const std::vector< int > &lp_elist, const std::vector< double > &lp_ecap, const int node_count, const std::string &lp_edges_fname)
Writes LP edges to file.
Definition: io_util.cpp:144