27 #ifndef SRC_METHODS_BP_BEAM_HPP_ 28 #define SRC_METHODS_BP_BEAM_HPP_ 51 template<
class UserNodeLabel,
class UserEdgeLabel>
66 TreeNode_(
const TreeNode_ & tree_node);
68 TreeNode_(
const NodeMap & node_map,
const std::vector<NodeMap::Assignment> & assignments);
72 const NodeMap & node_map()
const;
74 std::size_t depth()
const;
76 bool operator<(
const TreeNode_ & tree_node)
const;
82 std::vector<NodeMap::Assignment> assignments_;
87 std::size_t beam_size_;
89 std::size_t num_orderings_;
97 virtual bool ls_parse_option_(
const std::string & option,
const std::string & arg)
final;
103 void sort_and_shrink_to_beam_size_(std::vector<TreeNode_> & open)
const;
105 void shuffle_assignments_(std::vector<NodeMap::Assignment> & assignments);
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.
Computes an upper bound for general edit costs.
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 d...
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.
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:...
The normalized input graphs used by GEDLIB. All labels are integers.
virtual bool ls_parse_option_(const std::string &option, const std::string &arg) final
Parses one option that is not among the ones shared by all derived classes of ged::LSBasedMethod.
Global namespace for GEDLIB.