|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Answer of karp_solve(), in the node positions of its input.
More...
#include <Min_Mean_Cycle.H>
Public Attributes | |
| bool | has_cycle = false |
| True if at least one directed cycle exists. | |
| long double | minimum_mean = std::numeric_limits<long double>::infinity() |
| size_t | witness = 0 |
Position of the vertex the walk ends at (if has_cycle). | |
| Cost_Type | cycle_total_cost = Cost_Type{0} |
| Weight sum of the witness. | |
| Array< size_t > | cycle_nodes |
| A simple cycle, by positions, the first one repeated at the end; may be empty. | |
| Array< typename GT::Arc * > | cycle_arcs |
Witness arcs, aligned with cycle_nodes. | |
| Array< Cost_Type > | cycle_weights |
| Their weights, as read. | |
| bool | witness_fits = true |
False if no minimum-mean cycle the walks gave has a cost that fits Cost_Type; there is then no witness, and the caller decides. | |
Answer of karp_solve(), in the node positions of its input.
| GT | Graph type. |
| Cost_Type | Arc weight type. |
Definition at line 233 of file Min_Mean_Cycle.H.
| Array<typename GT::Arc *> Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::cycle_arcs |
Witness arcs, aligned with cycle_nodes.
Definition at line 241 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| Array<size_t> Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::cycle_nodes |
A simple cycle, by positions, the first one repeated at the end; may be empty.
Definition at line 240 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| Cost_Type Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::cycle_total_cost = Cost_Type{0} |
Weight sum of the witness.
Definition at line 238 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| Array<Cost_Type> Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::cycle_weights |
Their weights, as read.
Definition at line 242 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| bool Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::has_cycle = false |
True if at least one directed cycle exists.
Definition at line 235 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| long double Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::minimum_mean = std::numeric_limits<long double>::infinity() |
Definition at line 236 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| size_t Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::witness = 0 |
Position of the vertex the walk ends at (if has_cycle).
Definition at line 237 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().
| bool Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >::witness_fits = true |
False if no minimum-mean cycle the walks gave has a cost that fits Cost_Type; there is then no witness, and the caller decides.
Definition at line 245 of file Min_Mean_Cycle.H.
Referenced by Aleph::min_mean_cycle_detail::karp_answer().