27 #ifndef SRC_METHODS_GED_METHOD_HPP_ 28 #define SRC_METHODS_GED_METHOD_HPP_ 30 #include "../env/common_types.hpp" 31 #include "../env/ged_data.hpp" 32 #include "../util/misc.hpp" 39 template<
class UserNodeLabel,
class UserEdgeLabel>
128 std::map<std::string, std::string> options_;
142 void read_options_from_string_(
const std::string & options);
144 void tokenize_(
const std::string & options, std::vector<std::string> & words)
const;
146 bool is_option_name_(std::string & option_name)
const;
172 virtual bool ged_parse_option_(
const std::string & option,
const std::string & arg);
Contains the standardized input data along with basic functionality.
GEDMethod(const GEDData< UserNodeLabel, UserEdgeLabel > &ged_data)
Constructor.
virtual std::string ged_valid_options_string_() const
Returns string of all valid options.
std::vector< GEDGraph >::size_type GraphID
Type of internally used graph IDs.
const GEDData< UserNodeLabel, UserEdgeLabel > & ged_data_
The data on which the method is run.
void run_as_util(const GEDGraph &g, const GEDGraph &h, Result &result)
Runs the method with options specified by set_options().
A wrapper structure for the result of calls to ged::GEDMethod::run_as_util() and ged::GEDMethod::ged_...
virtual void ged_set_default_options_()
Sets all options to default values.
Abstract class for the (suboptimal) computation of the graph edit distance.
double get_lower_bound() const
Returns a lower bound.
Seconds get_runtime() const
Returns the runtime.
const NodeMap & get_node_map() const
Returns a graph matching.
std::chrono::duration< double > Seconds
Internally used type for measurements in seconds.
void run(GEDGraph::GraphID g_id, GEDGraph::GraphID h_id)
Runs the method with options specified by set_options().
double get_upper_bound() const
Returns an upper bound.
void set_options(const std::string &options)
Sets the options of the method.
bool initialized_
A flag that equals true if init() has been called and false otherwise.
virtual bool ged_parse_option_(const std::string &option, const std::string &arg)
Parses one option.
virtual void ged_run_(const GEDGraph &g, const GEDGraph &h, Result &result)
Runs the method with options specified by set_options().
virtual void ged_init_()
Initializes the method.
The normalized input graphs used by GEDLIB. All labels are integers.
Global namespace for GEDLIB.
Seconds get_init_time() const
Returns the initialization time.
void init()
Initializes the method with options specified by set_options().
virtual ~GEDMethod()=0
Pure virtual destructor.