Class model::GraphCompactModel
Graph Compact Model.
This is with a cost function that can be expressed as a compact graph. GraphCompactModel is samilar to GraphModel except GraphCompactModel use a compact representation and it only allow sequential visiting
Inherited Members
Constructors
GraphCompactModel()
Declaration
model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::GraphCompactModel()
Methods
~GraphCompactModel()
Declaration
virtual model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::~GraphCompactModel()
configure()
Configure the graph from JSON document.
Declaration
void model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::configure(const utils::Json&json) override
configure()
Configure the graph from preloaded graph.
Declaration
void model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::configure(Configuration_T&configuration)
init()
Initializes internal data structures (guaranteed to be called after configure()
).
Declaration
void model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::init() override
get_sweep_size()
Declaration
size_t model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_sweep_size() const override
get_term_count()
Declaration
size_t model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_term_count() const override
node_count()
Return the number of nodes.
Declaration
size_t model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::node_count() const
edge_count()
Return the number of edges.
Declaration
size_t model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::edge_count() const
edge()
Declaration
const Edge_T&model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::edge(size_t edge_id) const
get_benchmark_properties()
Fill the graph benchmarking properties.
Declaration
utils::Structure model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_benchmark_properties() const override
is_rescaled()
Declaration
bool model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::is_rescaled() const override
rescale()
Declaration
void model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::rescale() override
get_scale_factor()
Declaration
double model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_scale_factor() const override
get_const_cost()
Declaration
double model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_const_cost() const override
is_empty()
Declaration
bool model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::is_empty() const override
estimate_max_cost_diff()
Declaration
virtual double model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::estimate_max_cost_diff() const override
has_initial_configuration()
Declaration
bool model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::has_initial_configuration() const override
get_initial_configuration()
Declaration
const std::vector<std::pair<int, int>>&model::GraphCompactModel<State_T, Transition_T, Element_T, Cost_T>::get_initial_configuration() const