Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type > Struct Template Reference

Answer of karp_solve(), in the node positions of its input. More...

#include <Min_Mean_Cycle.H>

Collaboration diagram for Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >:
[legend]

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.
 

Detailed Description

template<AlephGraph GT, typename Cost_Type>
struct Aleph::min_mean_cycle_detail::Karp_Answer< GT, Cost_Type >

Answer of karp_solve(), in the node positions of its input.

Template Parameters
GTGraph type.
Cost_TypeArc weight type.

Definition at line 233 of file Min_Mean_Cycle.H.

Member Data Documentation

◆ cycle_arcs

template<AlephGraph GT, typename Cost_Type >
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().

◆ cycle_nodes

template<AlephGraph GT, typename Cost_Type >
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().

◆ cycle_total_cost

template<AlephGraph GT, typename Cost_Type >
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().

◆ cycle_weights

template<AlephGraph GT, typename Cost_Type >
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().

◆ has_cycle

template<AlephGraph GT, typename Cost_Type >
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().

◆ minimum_mean

template<AlephGraph GT, typename Cost_Type >
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().

◆ witness

template<AlephGraph GT, typename Cost_Type >
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().

◆ witness_fits

template<AlephGraph GT, typename Cost_Type >
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().


The documentation for this struct was generated from the following file: