27 #ifndef SRC_EDIT_COSTS_PROTEIN_HPP_ 28 #define SRC_EDIT_COSTS_PROTEIN_HPP_ 31 #include "../util/lsape_solver.hpp" 53 template<
class UserNodeLabel,
class UserEdgeLabel>
66 Protein(
double node_ins_del_cost = 11,
double edge_ins_del_cost = 1,
double alpha = 0.75);
72 virtual double node_rel_cost_fun(
const UserNodeLabel & node_label_1,
const UserNodeLabel & node_label_2)
const final;
78 virtual double edge_rel_cost_fun(
const UserEdgeLabel & edge_label_1,
const UserEdgeLabel & edge_label_2)
const final;
82 double levenshtein_distance_(
const std::string & string_1,
const std::string & string_2)
const;
84 double node_ins_del_cost_;
86 double edge_ins_del_cost_;
ged::EditCosts class declaration.
virtual double edge_ins_cost_fun(const UserEdgeLabel &edge_label) const final
Edge insertion cost function.
virtual double node_rel_cost_fun(const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const final
Node relabeling cost function.
ged::Protein class definition.
virtual double node_ins_cost_fun(const UserNodeLabel &node_label) const final
Node insertions cost function.
virtual double node_del_cost_fun(const UserNodeLabel &node_label) const final
Node deletion cost function.
Global namespace for GEDLIB.
virtual double edge_del_cost_fun(const UserEdgeLabel &edge_label) const final
Edge deletion cost function.
Protein(double node_ins_del_cost=11, double edge_ins_del_cost=1, double alpha=0.75)
Constructor.
virtual double edge_rel_cost_fun(const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const final
Edge relabeling cost function.
Abstract class for defining edit cost functions.
Edit costs for graphs contained in Protein dataset.