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

Result of minimum mean cycle computation. More...

#include <Min_Mean_Cycle.H>

Inheritance diagram for Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >:
[legend]
Collaboration diagram for Aleph::Min_Mean_Cycle_Result< 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()
 
GT::Node * witness_node
 Vertex Karp's walk ends at (not necessarily on the cycle).
 
Cost_Type cycle_total_cost = Cost_Type{0}
 Weight sum of witness cycle.
 
size_t cycle_length = 0
 Number of arcs in witness cycle.
 
DynList< typename GT::Node * > cycle_nodes
 Witness simple cycle (first node repeated at end).
 
DynList< typename GT::Arc * > cycle_arcs
 Witness arcs aligned with cycle_nodes.
 

Detailed Description

template<AlephGraph GT, typename Cost_Type>
struct Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >

Result of minimum mean cycle computation.

Template Parameters
GTGraph type.
Cost_TypeArc weight type returned by the distance accessor.

Definition at line 112 of file Min_Mean_Cycle.H.

Member Data Documentation

◆ cycle_arcs

template<AlephGraph GT, typename Cost_Type >
DynList<typename GT::Arc *> Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::cycle_arcs

Witness arcs aligned with cycle_nodes.

Definition at line 123 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), and Aleph::karp_minimum_mean_cycle().

◆ cycle_length

template<AlephGraph GT, typename Cost_Type >
size_t Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::cycle_length = 0

Number of arcs in witness cycle.

Definition at line 120 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), Aleph::karp_minimum_mean_cycle(), and TEST().

◆ cycle_nodes

template<AlephGraph GT, typename Cost_Type >
DynList<typename GT::Node *> Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::cycle_nodes

Witness simple cycle (first node repeated at end).

Definition at line 122 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), and Aleph::karp_minimum_mean_cycle().

◆ cycle_total_cost

template<AlephGraph GT, typename Cost_Type >
Cost_Type Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::cycle_total_cost = Cost_Type{0}

Weight sum of witness cycle.

Definition at line 119 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), Aleph::karp_minimum_mean_cycle(), and TEST().

◆ has_cycle

template<AlephGraph GT, typename Cost_Type >
bool Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::has_cycle = false

True if at least one directed cycle exists.

Definition at line 114 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), Aleph::karp_minimum_mean_cycle(), and TEST().

◆ minimum_mean

template<AlephGraph GT, typename Cost_Type >
long double Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::minimum_mean = std::numeric_limits<long double>::infinity()

◆ witness_node

template<AlephGraph GT, typename Cost_Type >
GT::Node* Aleph::Min_Mean_Cycle_Result< GT, Cost_Type >::witness_node
Initial value:
=
nullptr

Vertex Karp's walk ends at (not necessarily on the cycle).

Definition at line 116 of file Min_Mean_Cycle.H.

Referenced by Aleph::howard_detail::karp_by_component(), and Aleph::karp_minimum_mean_cycle().


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