27 #ifndef SRC_METHODS_SUBGRAPH_HPP_ 28 #define SRC_METHODS_SUBGRAPH_HPP_ 48 template<
class UserNodeLabel,
class UserEdgeLabel>
61 std::size_t min_depth_;
63 std::size_t max_depth_;
69 std::string exact_options_;
71 std::map<GEDGraph::GraphID, GEDGraph> subgraphs_;
81 virtual bool lsape_parse_option_(
const std::string & option,
const std::string & arg)
final;
99 void build_subgraphs_(
const GEDGraph & graph);
107 bool load_config_file_()
const;
std::map< NodeID, NodeID > NodeNodeMap
Map that assigns node IDs to node IDs.
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:...
Contains the standardized input data along with basic functionality.
std::vector< GEDGraph >::size_type GraphID
Type of internally used graph IDs.
virtual void lsape_populate_instance_(const GEDGraph &g, const GEDGraph &h, DMatrix &master_problem) final
Populates the LSAPE instance.
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.
Abstract class for the (suboptimal) computation of the graph edit distance.
GEDMethod
Selects the method.
virtual void lsape_init_() final
Initializes the method after initializing the global variables for the graphs.
Abstract class for methods that use lossy transformations to LSAPE for approximating the graph edit d...
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.
Computes upper bounds for general edit costs.
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.
virtual void lsape_pre_graph_init_(bool called_at_runtime) final
Initializes the method at runtime or during initialization before initializing the global variables f...