27 #ifndef SRC_METHODS_REFINE_HPP_ 28 #define SRC_METHODS_REFINE_HPP_ 46 template<
class UserNodeLabel,
class UserEdgeLabel>
57 std::size_t max_swap_size_;
61 bool add_dummy_assignment_;
64 std::vector<NodeMap::Assignment> original_assignments;
65 std::vector<NodeMap::Assignment> new_assignments;
69 void do_swap(
NodeMap & node_map,
double delta_cost=0)
const;
71 void undo_swap(
NodeMap & node_map)
const;
73 std::string print()
const;
79 virtual bool ls_parse_option_(
const std::string & option,
const std::string & arg);
83 bool next_subset_(
const std::size_t set_size, std::vector<std::size_t> & subset);
Abstract class for methods that use variants of local search for upper bounding the graph edit distan...
Contains the standardized input data along with basic functionality.
virtual void ls_set_default_options_()
Sets all options that are not among the ones shared by all derived classes of ged::LSBasedMethod to d...
virtual bool ls_parse_option_(const std::string &option, const std::string &arg)
Parses one option that is not among the ones shared by all derived classes of ged::LSBasedMethod.
virtual std::string ls_valid_options_string_() const
Returns string of all valid options that are not among the ones shared by all derived classes of ged:...
The normalized input graphs used by GEDLIB. All labels are integers.
Computes an upper bound for general edit costs.
Global namespace for GEDLIB.
virtual 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.