Edit costs for graphs contain in CMU dataset. More...
#include <cmu.hpp>
Public Member Functions | |
CMU (double node_ins_del_cost=100000, double alpha=0.5) | |
Constructor. More... | |
virtual double | node_ins_cost_fun (const UserNodeLabel &node_label) const final |
Node insertions cost function. More... | |
virtual double | node_del_cost_fun (const UserNodeLabel &node_label) const final |
Node deletion cost function. More... | |
virtual double | node_rel_cost_fun (const UserNodeLabel &node_label_1, const UserNodeLabel &node_label_2) const final |
Node relabeling cost function. More... | |
virtual void | vectorize_node_label (const UserNodeLabel &node_label, std::vector< double > &vector_representation) const final |
Computes a node label's representation as a real-valued vector. More... | |
virtual double | edge_ins_cost_fun (const UserEdgeLabel &edge_label) const final |
Edge insertion cost function. More... | |
virtual double | edge_del_cost_fun (const UserEdgeLabel &edge_label) const final |
Edge deletion cost function. More... | |
virtual double | edge_rel_cost_fun (const UserEdgeLabel &edge_label_1, const UserEdgeLabel &edge_label_2) const final |
Edge relabeling cost function. More... | |
![]() | |
virtual | ~EditCosts ()=0 |
Virtual destructor. More... | |
EditCosts () | |
Constructor. | |
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... | |
Edit costs for graphs contain in CMU dataset.
The graphs contained in the CMU dataset represent images of houses from different viewpoints. Each graph has 30 nodes that are attributed with Euclidian coordinates (named "x" and "y"). An edge e is attributed with the integer-valued Euclidean distance d(e) between the attributes of its endpoints (named "dist"). The CMU dataset is part of the graph data repository for graph edit distance which can be downloaded from http://www.rfai.li.univ-tours.fr/PublicData/GDR4GED/home.html:
Implements the edit costs suggested in:
ged::CMU< UserNodeLabel, UserEdgeLabel >::CMU | ( | double | node_ins_del_cost = 100000 , |
double | alpha = 0.5 |
||
) |
Constructor.
[in] | node_ins_del_cost | Cost for deleting or inserting nodes. |
[in] | alpha | Importance of node edit operations vs. importance of edge edit operations. |
|
finalvirtual |
Edge deletion cost function.
[in] | edge_label | An edge label. |
edge_label
. Reimplemented from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
Edge insertion cost function.
[in] | edge_label | An edge label. |
edge_label
. Reimplemented from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
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 from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
Node deletion cost function.
[in] | node_label | A node label. |
node_label
. Reimplemented from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
Node insertions cost function.
[in] | node_label | A node label. |
node_label
. Reimplemented from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
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 from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.
|
finalvirtual |
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 from ged::EditCosts< UserNodeLabel, UserEdgeLabel >.