GEDLIB
1.0
|
A wrapper structure for the result of calls to ged::GEDMethod::run_as_util() and ged::GEDMethod::ged_run_(). More...
#include <result.hpp>
Public Member Functions | |
Result () | |
Default constructor. | |
void | set_lower_bound (double lower_bound) |
Sets the lower bound for GED. More... | |
double | lower_bound () const |
Returns the lower bound for GED. More... | |
double | upper_bound () const |
Returns the upper bound for GED. More... | |
std::size_t | add_node_map (std::size_t num_nodes_g, std::size_t num_nodes_h) |
Adds an empty node map to the result. More... | |
std::size_t | add_node_map (const NodeMap &node_map) |
Adds a node map to the result. More... | |
NodeMap & | node_map (std::size_t index_node_map) |
Provides access to a node map. More... | |
bool | is_non_redundant_node_map (std::size_t index_node_map) |
Checks if a node map is already contained in the vector of all node maps and removes it if this is the case. More... | |
std::vector< NodeMap > & | node_maps () |
Provides access to all node maps. More... | |
std::size_t | num_node_maps () const |
Returns the number of node maps. More... | |
void | sort_node_maps_and_set_upper_bound (std::size_t num_node_maps=std::numeric_limits< std::size_t >::max()) |
Sorts the vector of node maps w.r.t non-decreasing induced cost and possibly discards expensive node maps. More... | |
A wrapper structure for the result of calls to ged::GEDMethod::run_as_util() and ged::GEDMethod::ged_run_().
Definition at line 38 of file result.hpp.
std::size_t ged::Result::add_node_map | ( | std::size_t | num_nodes_g, |
std::size_t | num_nodes_h | ||
) |
Adds an empty node map to the result.
[in] | num_nodes_g | Number of nodes in first input graph. |
[in] | num_nodes_h | Number of nodes in second input graph. |
Definition at line 60 of file result.ipp.
std::size_t ged::Result::add_node_map | ( | const NodeMap & | node_map | ) |
Adds a node map to the result.
[in] | node_map | The node map to be added to the result. |
Definition at line 67 of file result.ipp.
bool ged::Result::is_non_redundant_node_map | ( | std::size_t | index_node_map | ) |
Checks if a node map is already contained in the vector of all node maps and removes it if this is the case.
[in] | index_node_map | The index of the node map whose non-redundancy should be ensured. |
true
if the node map at index_node_map
is non-redundant and false
otherwise. Definition at line 80 of file result.ipp.
double ged::Result::lower_bound | ( | ) | const |
Returns the lower bound for GED.
Definition at line 45 of file result.ipp.
NodeMap & ged::Result::node_map | ( | std::size_t | index_node_map | ) |
Provides access to a node map.
[in] | index_node_map | The index of the node map. |
index_node_map
. Definition at line 74 of file result.ipp.
std::vector< NodeMap > & ged::Result::node_maps | ( | ) |
Provides access to all node maps.
Definition at line 98 of file result.ipp.
std::size_t ged::Result::num_node_maps | ( | ) | const |
Returns the number of node maps.
Definition at line 104 of file result.ipp.
void ged::Result::set_lower_bound | ( | double | lower_bound | ) |
Sets the lower bound for GED.
[in] | lower_bound | The lower bound for GED. |
Definition at line 39 of file result.ipp.
void ged::Result::sort_node_maps_and_set_upper_bound | ( | std::size_t | num_node_maps = std::numeric_limits<std::size_t>::max() | ) |
Sorts the vector of node maps w.r.t non-decreasing induced cost and possibly discards expensive node maps.
[in] | num_node_maps | The number of node maps to be retained. If smaller than the number of node maps contained in the result, the most expensive node maps are deleted. |
Definition at line 110 of file result.ipp.
double ged::Result::upper_bound | ( | ) | const |
Returns the upper bound for GED.
Definition at line 51 of file result.ipp.