27 #ifndef SRC_EDIT_COSTS_EDIT_COSTS_IPP_ 28 #define SRC_EDIT_COSTS_EDIT_COSTS_IPP_ 32 template<
class UserNodeLabel,
class UserEdgeLabel>
36 template<
class UserNodeLabel,
class UserEdgeLabel>
40 template<
class UserNodeLabel,
class UserEdgeLabel>
47 template<
class UserNodeLabel,
class UserEdgeLabel>
54 template<
class UserNodeLabel,
class UserEdgeLabel>
57 node_rel_cost_fun(
const UserNodeLabel & node_label_1,
const UserNodeLabel & node_label_2)
const {
61 template<
class UserNodeLabel,
class UserEdgeLabel>
64 vectorize_node_label(
const UserNodeLabel & node_label, std::vector<double> & vector_representation)
const {
65 vector_representation.clear();
68 template<
class UserNodeLabel,
class UserEdgeLabel>
71 edge_rel_cost_fun(
const UserEdgeLabel & node_label_1,
const UserEdgeLabel & node_label_2)
const {
75 template<
class UserNodeLabel,
class UserEdgeLabel>
82 template<
class UserNodeLabel,
class UserEdgeLabel>
89 template<
class UserNodeLabel,
class UserEdgeLabel>
92 vectorize_edge_label(
const UserEdgeLabel & edge_label, std::vector<double> & vector_representation)
const {
93 vector_representation.clear();
virtual void vectorize_node_label(const UserNodeLabel &node_label, std::vector< double > &vector_representation) const
Computes a node label's representation as a real-valued vector.
virtual double edge_del_cost_fun(const UserEdgeLabel &edge_label) const
Edge deletion cost function.
virtual double edge_rel_cost_fun(const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const
Edge relabeling cost function.
virtual ~EditCosts()=0
Virtual destructor.
virtual double node_ins_cost_fun(const UserNodeLabel &node_label) const
Node insertions cost function.
virtual void vectorize_edge_label(const UserEdgeLabel &edge_label, std::vector< double > &vector_representation) const
Computes an edge label's representation as a real-valued vector.
virtual double node_del_cost_fun(const UserNodeLabel &node_label) const
Node deletion cost function.
Global namespace for GEDLIB.
virtual double node_rel_cost_fun(const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const
Node relabeling cost function.
virtual double edge_ins_cost_fun(const UserEdgeLabel &edge_label) const
Edge insertion cost function.