GEDLIB
1.0
|
Abstract class for defining edit cost functions. More...
#include <edit_costs.hpp>
Public Member Functions | |
virtual | ~EditCosts ()=0 |
Virtual destructor. More... | |
EditCosts () | |
Constructor. | |
virtual double | node_ins_cost_fun (const UserNodeLabel &node_label) const |
Node insertions cost function. More... | |
virtual double | node_del_cost_fun (const UserNodeLabel &node_label) const |
Node deletion cost function. More... | |
virtual double | node_rel_cost_fun (const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const |
Node relabeling cost function. More... | |
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. More... | |
virtual double | edge_ins_cost_fun (const UserEdgeLabel &edge_label) const |
Edge insertion cost function. More... | |
virtual double | edge_del_cost_fun (const UserEdgeLabel &edge_label) const |
Edge deletion cost function. More... | |
virtual double | edge_rel_cost_fun (const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const |
Edge relabeling cost function. More... | |
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. More... | |
Abstract class for defining edit cost functions.
Definition at line 38 of file edit_costs.hpp.
|
pure virtual |
Virtual destructor.
Definition at line 34 of file edit_costs.ipp.
|
virtual |
Edge deletion cost function.
[in] | edge_label | An edge label. |
edge_label
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 78 of file edit_costs.ipp.
|
virtual |
Edge insertion cost function.
[in] | edge_label | An edge label. |
edge_label
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 85 of file edit_costs.ipp.
|
virtual |
Edge relabeling cost function.
[in] | edge_label_1 | An edge label. |
[in] | edge_label_2 | An edge label. |
edge_label_1
to edge_label_2
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 71 of file edit_costs.ipp.
|
virtual |
Node deletion cost function.
[in] | node_label | A node label. |
node_label
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 43 of file edit_costs.ipp.
|
virtual |
Node insertions cost function.
[in] | node_label | A node label. |
node_label
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 50 of file edit_costs.ipp.
|
virtual |
Node relabeling cost function.
[in] | node_label_1 | A node label. |
[in] | node_label_2 | A node label. |
node_label_1
to node_label_2
. Reimplemented in ged::GREC2< UserNodeLabel, UserEdgeLabel >, ged::CHEM2< UserNodeLabel, UserEdgeLabel >, ged::Protein< UserNodeLabel, UserEdgeLabel >, ged::CHEM1< UserNodeLabel, UserEdgeLabel >, ged::CMU< UserNodeLabel, UserEdgeLabel >, ged::Letter< UserNodeLabel, UserEdgeLabel >, ged::Fingerprint< UserNodeLabel, UserEdgeLabel >, ged::GREC1< UserNodeLabel, UserEdgeLabel >, and ged::Constant< UserNodeLabel, UserEdgeLabel >.
Definition at line 57 of file edit_costs.ipp.
|
virtual |
Computes an edge label's representation as a real-valued vector.
[in] | edge_label | An edge label. |
[out] | vector_representation | The edge label's vector representation. |
Definition at line 92 of file edit_costs.ipp.
|
virtual |
Computes a node label's representation as a real-valued vector.
[in] | node_label | A node label. |
[out] | vector_representation | The node label's vector representation. |
Reimplemented in ged::CMU< UserNodeLabel, UserEdgeLabel >.
Definition at line 64 of file edit_costs.ipp.