27 #ifndef SRC_EDIT_COSTS_GREC_1_IPP_ 28 #define SRC_EDIT_COSTS_GREC_1_IPP_ 34 GREC1<GXLLabel, GXLLabel>::
59 if (node_label_1.at(
"type") != node_label_2.at(
"type")) {
62 double x_l_minus_x_r(std::stod(node_label_1.at(
"x")) - std::stod(node_label_2.at(
"x")));
63 double y_l_minus_y_r(std::stod(node_label_1.at(
"y")) - std::stod(node_label_2.at(
"y")));
64 return 0.5 * std::sqrt(std::pow(x_l_minus_x_r, 2) + std::pow(y_l_minus_y_r, 2));
71 return 7.5 * std::stod(edge_label.at(
"frequency"));
78 return 7.5 * std::stod(edge_label.at(
"frequency"));
85 if (edge_label_1.at(
"frequency") != edge_label_2.at(
"frequency")) {
88 if (edge_label_1.at(
"frequency") ==
"1") {
89 if (edge_label_1.at(
"type0") == edge_label_2.at(
"type0")) {
virtual double edge_rel_cost_fun(const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const final
Edge relabeling cost function.
virtual double node_del_cost_fun(const UserNodeLabel &node_label) const final
Node deletion cost function.
virtual double node_rel_cost_fun(const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const final
Node relabeling cost function.
std::map< std::string, std::string > GXLLabel
Type of node and edge labels of graphs given in the .gxl file format.
Global namespace for GEDLIB.
virtual double edge_ins_cost_fun(const UserEdgeLabel &edge_label) const final
Edge insertion cost function.
virtual double node_ins_cost_fun(const UserNodeLabel &node_label) const final
Node insertions cost function.
virtual double edge_del_cost_fun(const UserEdgeLabel &edge_label) const final
Edge deletion cost function.