27 #ifndef SRC_EDIT_COSTS_FINGERPRINT_HPP_ 28 #define SRC_EDIT_COSTS_FINGERPRINT_HPP_ 50 template<
class UserNodeLabel,
class UserEdgeLabel>
63 Fingerprint(
double node_ins_del_cost = 0.7,
double edge_ins_del_cost = 0.5,
double alpha = 0.75);
69 virtual double node_rel_cost_fun(
const UserNodeLabel & node_label_1,
const UserNodeLabel & node_label_2)
const final;
75 virtual double edge_rel_cost_fun(
const UserEdgeLabel & edge_label_1,
const UserEdgeLabel & edge_label_2)
const final;
79 double node_ins_del_cost_;
81 double edge_ins_del_cost_;
85 static constexpr
double pi_() {
return 3.141592653589793238463;}
ged::EditCosts class declaration.
Fingerprint(double node_ins_del_cost=0.7, double edge_ins_del_cost=0.5, 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.
virtual double edge_ins_cost_fun(const UserEdgeLabel &edge_label) const final
Edge insertion cost function.
virtual double node_del_cost_fun(const UserNodeLabel &node_label) const final
Node deletion cost function.
virtual double edge_del_cost_fun(const UserEdgeLabel &edge_label) const final
Edge 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.
Global namespace for GEDLIB.
virtual double node_ins_cost_fun(const UserNodeLabel &node_label) const final
Node insertions cost function.
Edit costs for graphs contained in Fingerprint dataset.
ged::Fingerprint class definition.
Abstract class for defining edit cost functions.