27 #ifndef SRC_METHODS_STAR_HPP_ 28 #define SRC_METHODS_STAR_HPP_ 44 template<
class UserNodeLabel,
class UserEdgeLabel>
55 enum SortMethod_ {STD, COUNTING};
57 class SortedNodeLabels_ {
59 SortedNodeLabels_(
const GEDGraph & g, SortMethod_ sort_method);
63 void operator=(
const SortedNodeLabels_ & sorted_edge_labels);
68 std::map<GEDGraph::NodeID, std::vector<LabelID>> sorted_node_labels_;
71 SortMethod_ sort_method_;
73 std::map<GEDGraph::GraphID, SortedNodeLabels_> sorted_node_labels_;
79 virtual bool lsape_parse_option_(
const std::string & option,
const std::string & arg)
final;
92 const SortedNodeLabels_ & sorted_node_labels_g,
const SortedNodeLabels_ & sorted_node_labels_h)
const;
virtual bool lsape_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::LSAPEBasedMethod.
Contains the standardized input data along with basic functionality.
virtual void lsape_populate_instance_(const GEDGraph &g, const GEDGraph &h, DMatrix &lsape_instance) final
Populates the LSAPE instance.
Computes lower and upper bounds for uniform edit costs.
virtual std::string lsape_valid_options_string_() const final
Returns string of all valid options that are not among the ones shared by all derived classes of ged:...
Abstract class for methods that use lossy transformations to LSAPE for approximating the graph edit d...
virtual double lsape_lower_bound_scaling_factor_(const GEDGraph &g, const GEDGraph &h) final
Returns scaling factor for lower bound.
The normalized input graphs used by GEDLIB. All labels are integers.
virtual void lsape_init_graph_(const GEDGraph &graph) final
Initializes global variables for one graph.
Global namespace for GEDLIB.
virtual void lsape_set_default_options_() final
Sets all options that are not among the ones shared by all derived classes of ged::LSAPEBasedMethod t...
std::size_t NodeID
Internally used vertex ID type.