GEDLIB
1.0
|
Abstract class for the (suboptimal) computation of the graph edit distance. More...
#include <ged_method.hpp>
Public Member Functions | |
virtual | ~GEDMethod ()=0 |
Pure virtual destructor. More... | |
GEDMethod (const GEDData< UserNodeLabel, UserEdgeLabel > &ged_data) | |
Constructor. More... | |
void | set_options (const std::string &options) |
Sets the options of the method. More... | |
void | run (GEDGraph::GraphID g_id, GEDGraph::GraphID h_id) |
Runs the method with options specified by set_options(). More... | |
void | run_as_util (const GEDGraph &g, const GEDGraph &h, Result &result) |
Runs the method with options specified by set_options(). More... | |
void | init () |
Initializes the method with options specified by set_options(). | |
double | get_upper_bound () const |
Returns an upper bound. More... | |
double | get_lower_bound () const |
Returns a lower bound. More... | |
Seconds | get_runtime () const |
Returns the runtime. More... | |
Seconds | get_init_time () const |
Returns the initialization time. More... | |
const NodeMap & | get_node_map () const |
Returns a graph matching. More... | |
Protected Attributes | |
bool | initialized_ |
A flag that equals true if init() has been called and false otherwise. | |
const GEDData< UserNodeLabel, UserEdgeLabel > & | ged_data_ |
The data on which the method is run. | |
Private Member Functions | |
virtual void | ged_init_ () |
Initializes the method. More... | |
virtual void | ged_run_ (const GEDGraph &g, const GEDGraph &h, Result &result) |
Runs the method with options specified by set_options(). More... | |
virtual bool | ged_parse_option_ (const std::string &option, const std::string &arg) |
Parses one option. More... | |
virtual std::string | ged_valid_options_string_ () const |
Returns string of all valid options. More... | |
virtual void | ged_set_default_options_ () |
Sets all options to default values. More... | |
Abstract class for the (suboptimal) computation of the graph edit distance.
Definition at line 40 of file ged_method.hpp.
|
pure virtual |
Pure virtual destructor.
Definition at line 35 of file ged_method.ipp.
ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::GEDMethod | ( | const GEDData< UserNodeLabel, UserEdgeLabel > & | ged_data | ) |
Constructor.
[in] | ged_data | The instance on which the method should be run. |
Definition at line 39 of file ged_method.ipp.
|
privatevirtual |
Initializes the method.
Reimplemented in ged::AnchorAwareGED< UserNodeLabel, UserEdgeLabel >, ged::LSAPEBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::BranchCompact< UserNodeLabel, UserEdgeLabel >, ged::MIPBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::Partition< UserNodeLabel, UserEdgeLabel >, and ged::SimulatedAnnealing< UserNodeLabel, UserEdgeLabel >.
Definition at line 243 of file ged_method.ipp.
|
privatevirtual |
Parses one option.
[in] | option | The name of the option. |
[in] | arg | The argument of the option. |
true
if option
is a valid option name for the method and false
otherwise. Reimplemented in ged::AnchorAwareGED< UserNodeLabel, UserEdgeLabel >, ged::BranchTight< UserNodeLabel, UserEdgeLabel >, ged::LSAPEBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::BranchCompact< UserNodeLabel, UserEdgeLabel >, ged::MIPBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::SimulatedAnnealing< UserNodeLabel, UserEdgeLabel >, ged::Hybrid< UserNodeLabel, UserEdgeLabel >, and ged::HED< UserNodeLabel, UserEdgeLabel >.
Definition at line 253 of file ged_method.ipp.
|
privatevirtual |
Runs the method with options specified by set_options().
[in] | g | Input graph. |
[in] | h | Input graph. |
[out] | result | Result variable. |
Reimplemented in ged::AnchorAwareGED< UserNodeLabel, UserEdgeLabel >, ged::BranchTight< UserNodeLabel, UserEdgeLabel >, ged::LSAPEBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::BranchCompact< UserNodeLabel, UserEdgeLabel >, ged::MIPBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::Partition< UserNodeLabel, UserEdgeLabel >, ged::SimulatedAnnealing< UserNodeLabel, UserEdgeLabel >, ged::Hybrid< UserNodeLabel, UserEdgeLabel >, and ged::HED< UserNodeLabel, UserEdgeLabel >.
Definition at line 248 of file ged_method.ipp.
|
privatevirtual |
Sets all options to default values.
Reimplemented in ged::AnchorAwareGED< UserNodeLabel, UserEdgeLabel >, ged::BranchTight< UserNodeLabel, UserEdgeLabel >, ged::LSAPEBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::BranchCompact< UserNodeLabel, UserEdgeLabel >, ged::MIPBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::SimulatedAnnealing< UserNodeLabel, UserEdgeLabel >, ged::Hybrid< UserNodeLabel, UserEdgeLabel >, and ged::HED< UserNodeLabel, UserEdgeLabel >.
Definition at line 267 of file ged_method.ipp.
|
privatevirtual |
Returns string of all valid options.
[–<option> <arg>] [...]
. Reimplemented in ged::AnchorAwareGED< UserNodeLabel, UserEdgeLabel >, ged::BranchTight< UserNodeLabel, UserEdgeLabel >, ged::LSAPEBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::BranchCompact< UserNodeLabel, UserEdgeLabel >, ged::MIPBasedMethod< UserNodeLabel, UserEdgeLabel >, ged::SimulatedAnnealing< UserNodeLabel, UserEdgeLabel >, ged::Hybrid< UserNodeLabel, UserEdgeLabel >, and ged::HED< UserNodeLabel, UserEdgeLabel >.
Definition at line 260 of file ged_method.ipp.
Seconds ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::get_init_time | ( | ) | const |
Returns the initialization time.
Definition at line 60 of file ged_method.ipp.
double ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::get_lower_bound | ( | ) | const |
Returns a lower bound.
Definition at line 74 of file ged_method.ipp.
const NodeMap & ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::get_node_map | ( | ) | const |
Returns a graph matching.
Definition at line 67 of file ged_method.ipp.
Seconds ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::get_runtime | ( | ) | const |
Returns the runtime.
Definition at line 53 of file ged_method.ipp.
double ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::get_upper_bound | ( | ) | const |
Returns an upper bound.
Definition at line 92 of file ged_method.ipp.
void ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::run | ( | GEDGraph::GraphID | g_id, |
GEDGraph::GraphID | h_id | ||
) |
Runs the method with options specified by set_options().
[in] | g_id | ID of input graph. |
[in] | h_id | ID of input graph. |
Definition at line 113 of file ged_method.ipp.
void ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::run_as_util | ( | const GEDGraph & | g, |
const GEDGraph & | h, | ||
Result & | result | ||
) |
Runs the method with options specified by set_options().
[in] | g | Input graph. |
[in] | h | Input graph. |
[out] | result | Result variable. |
Definition at line 129 of file ged_method.ipp.
void ged::GEDMethod< UserNodeLabel, UserEdgeLabel >::set_options | ( | const std::string & | options | ) |
Sets the options of the method.
[in] | options | String of the form [–<option> <arg>] [...] , where option contains neither spaces nor single quotes, and arg contains neither spaces nor single quotes or is of the form '[–<sub-option> <sub-arg>] [...]' , where both sub-option and sub-arg contain neither spaces nor single quotes. |
Definition at line 99 of file ged_method.ipp.