27 #ifndef SRC_EDIT_COSTS_CONSTANT_HPP_ 28 #define SRC_EDIT_COSTS_CONSTANT_HPP_ 37 template<
class UserNodeLabel,
class UserEdgeLabel>
54 Constant(
double node_ins_cost = 1,
double node_del_cost = 1,
double node_rel_cost = 1,
double edge_ins_cost = 1,
double edge_del_cost = 1,
double edge_rel_cost = 1);
60 virtual double node_rel_cost_fun(
const UserNodeLabel & node_label_1,
const UserNodeLabel & node_label_2)
const final;
66 virtual double edge_rel_cost_fun(
const UserEdgeLabel & edge_label_1,
const UserEdgeLabel & edge_label_2)
const final;
70 double node_ins_cost_;
72 double node_del_cost_;
74 double node_rel_cost_;
76 double edge_ins_cost_;
78 double edge_del_cost_;
80 double edge_rel_cost_;
ged::EditCosts class declaration.
virtual double node_del_cost_fun(const UserNodeLabel &node_label) const final
Node deletion cost function.
ged::Constant class definition.
virtual double node_rel_cost_fun(const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const final
Node relabeling cost function.
virtual double edge_rel_cost_fun(const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const final
Edge relabeling cost function.
virtual double edge_ins_cost_fun(const UserEdgeLabel &edge_label) const final
Edge insertion cost function.
Global namespace for GEDLIB.
virtual double node_ins_cost_fun(const UserNodeLabel &node_label) const final
Node insertions cost function.
Constant(double node_ins_cost=1, double node_del_cost=1, double node_rel_cost=1, double edge_ins_cost=1, double edge_del_cost=1, double edge_rel_cost=1)
Constructor.
Implements constant edit cost functions.
Abstract class for defining edit cost functions.
virtual double edge_del_cost_fun(const UserEdgeLabel &edge_label) const final
Edge deletion cost function.