27 #ifndef SRC_UTIL_MISC_HPP_ 28 #define SRC_UTIL_MISC_HPP_ 30 #include "../env/ged_graph.hpp" 31 #include "../env/node_map.hpp" 32 #include "../util/lsap_solver.hpp" 33 #include "../util/lsape_solver.hpp" 50 template<
class Solver>
59 void counting_sort(std::vector<LabelID>::iterator first, std::vector<LabelID>::iterator last);
73 void parse_config_file(
const std::string & filename, std::map<std::string, std::string> & options);
80 void save_as_config_file(
const std::string & filename,
const std::map<std::string, std::string> & options);
Matrix< double > DMatrix
Matrix with double entries.
void counting_sort(std::vector< LabelID >::iterator first, std::vector< LabelID >::iterator last)
Implementation of counting sort.
void parse_config_file(const std::string &filename, std::map< std::string, std::string > &options)
Parses a configuration file.
Global namespace for GEDLIB.
void save_as_config_file(const std::string &filename, const std::map< std::string, std::string > &options)
Saves a string map as a configuration file as expected by parse_config_file().
void construct_node_map_from_solver(const Solver &solver, NodeMap &node_map, std::size_t solution_id=0)
Constructs a node map from a solution to LSAPE or LSAPE stored in a ged::LSAPESolver or a ged::LSAPSo...
void init_adj_matrix(const GEDGraph &graph, DMatrix &adj_matrix)
Initalizes the adjacency matrix of a graph.
Definition of miscellaneous utility functions.