GEDLIB  1.0
Private Member Functions | List of all members
ged::IPFP< UserNodeLabel, UserEdgeLabel > Class Template Reference

Computes an upper bound for general edit costs. More...

#include <ipfp.hpp>

Inheritance diagram for ged::IPFP< UserNodeLabel, UserEdgeLabel >:
Inheritance graph
[legend]

Private Member Functions

void ls_run_from_initial_solution_ (const GEDGraph &g, const GEDGraph &h, double lower_bound, const NodeMap &initial_node_map, NodeMap &output_node_map) final
 Runs the local search from an initial node map. More...
 
virtual void ls_runtime_init_ (const GEDGraph &g, const GEDGraph &h) final
 Initializes the method for a run between two graphs. More...
 
virtual void ls_set_default_options_ () final
 Sets all options that are not among the ones shared by all derived classes of ged::LSBasedMethod to default values. More...
 
virtual bool ls_parse_option_ (const std::string &options, const std::string &arg) final
 Parses one option that is not among the ones shared by all derived classes of ged::LSBasedMethod. More...
 
virtual std::string ls_valid_options_string_ () const final
 Returns string of all valid options that are not among the ones shared by all derived classes of ged::LSBasedMethod. More...
 

Additional Inherited Members

- Public Member Functions inherited from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >
virtual ~LSBasedMethod ()=0
 Pure virtual destructor. More...
 
 LSBasedMethod (const GEDData< UserNodeLabel, UserEdgeLabel > &ged_data)
 Constructor. More...
 
- Public Member Functions inherited from ged::GEDMethod< UserNodeLabel, UserEdgeLabel >
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 NodeMapget_node_map () const
 Returns a graph matching. More...
 
- Protected Attributes inherited from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >
std::size_t num_threads_
 The number of threads to be used.
 
- Protected Attributes inherited from ged::GEDMethod< UserNodeLabel, UserEdgeLabel >
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.
 

Detailed Description

template<class UserNodeLabel, class UserEdgeLabel>
class ged::IPFP< UserNodeLabel, UserEdgeLabel >

Computes an upper bound for general edit costs.

Implements the method IPFP (Frank-Wolfe for QAP and GED) suggested in:

the reduction QAPE suggested in:

the extension m-IPFP suggested in:

and the extension C-QAP suggested in:

Supports the following options:

--<option> <arg> modified parameter default more information
--iterations <convertible to int greater equal 0> maximal number of iterations 100 if 0, no iteration based termination criterion is used
--time-limit <convertible to double> time limit in seconds 0 if less or equal 0, no time limit is enforced
--epsilon <convertible to double> convergence threshold 0.001 if less or equal 0, no convergence based termination criterion is used
--lsape-model ECBP|EBP|FLWC|FLCC|FBP|SFBP|FBP0 model for optimally solving LSAPE ECBP ged::LSAPESolver::Model
--quadratic-model QAPE|B-QAP|C-QAP quadratic assignment model QAPE ICPR paper

Definition at line 64 of file ipfp.hpp.

Member Function Documentation

◆ ls_parse_option_()

template<class UserNodeLabel , class UserEdgeLabel >
bool ged::IPFP< UserNodeLabel, UserEdgeLabel >::ls_parse_option_ ( const std::string &  option,
const std::string &  arg 
)
finalprivatevirtual

Parses one option that is not among the ones shared by all derived classes of ged::LSBasedMethod.

Parameters
[in]optionThe name of the option.
[in]argThe argument of the option.
Returns
Returns true if option is a valid option name for the method and false otherwise.
Note
Must be overridden by derived classes of ged::LSBasedMethod that have options that are not among the ones shared by all derived classes of ged::LSBasedMethod.

Reimplemented from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >.

Definition at line 196 of file ipfp.ipp.

◆ ls_run_from_initial_solution_()

template<class UserNodeLabel , class UserEdgeLabel >
void ged::IPFP< UserNodeLabel, UserEdgeLabel >::ls_run_from_initial_solution_ ( const GEDGraph g,
const GEDGraph h,
double  lower_bound,
const NodeMap initial_node_map,
NodeMap output_node_map 
)
finalprivatevirtual

Runs the local search from an initial node map.

Parameters
[in]gInput graph.
[in]hInput graph.
[in]lower_boundA lower bound for GED which can be used as a termination criterion.
[in]initial_node_mapInitial node map.
[out]output_node_mapNode map constructed by local search.
Note
Must be overridden by derived classes of ged::LSBasedMethod.

Reimplemented from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >.

Definition at line 53 of file ipfp.ipp.

◆ ls_runtime_init_()

template<class UserNodeLabel , class UserEdgeLabel >
void ged::IPFP< UserNodeLabel, UserEdgeLabel >::ls_runtime_init_ ( const GEDGraph g,
const GEDGraph h 
)
finalprivatevirtual

Initializes the method for a run between two graphs.

Parameters
[in]gInput graph.
[in]hInput graph.
Note
Must be overridden by derived classes of ged::LSBasedMethod that require initialization at runtime.

Reimplemented from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >.

Definition at line 170 of file ipfp.ipp.

◆ ls_set_default_options_()

template<class UserNodeLabel , class UserEdgeLabel >
void ged::IPFP< UserNodeLabel, UserEdgeLabel >::ls_set_default_options_ ( )
finalprivatevirtual

Sets all options that are not among the ones shared by all derived classes of ged::LSBasedMethod to default values.

Note
Must be overridden by derived classes of ged::LSBasedMethod that have options that are not among the ones shared by all derived classes of ged::LSBasedMethod.

Reimplemented from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >.

Definition at line 178 of file ipfp.ipp.

◆ ls_valid_options_string_()

template<class UserNodeLabel , class UserEdgeLabel >
std::string ged::IPFP< UserNodeLabel, UserEdgeLabel >::ls_valid_options_string_ ( ) const
finalprivatevirtual

Returns string of all valid options that are not among the ones shared by all derived classes of ged::LSBasedMethod.

Returns
String of the form "[--<option> <arg>] [...]".
Note
Must be overridden by derived classes of ged::LSBasedMethod that have options that are not among the ones shared by all derived classes of ged::LSBasedMethod.

Reimplemented from ged::LSBasedMethod< UserNodeLabel, UserEdgeLabel >.

Definition at line 189 of file ipfp.ipp.


The documentation for this class was generated from the following files: