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

One negative cycle reported by find_disjoint_negative_cycles(). More...

#include <Negative_Cycles.H>

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

Public Attributes

Path< GT > cycle
 Closed path: is_cycle() holds, every arc is a graph arc.
 
Cost_Type total_cost = Cost_Type{0}
 Sum of the arc weights, negative; for floating-point costs the exact sum, rounded once.
 
size_t length = 0
 Number of arcs.
 

Detailed Description

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

One negative cycle reported by find_disjoint_negative_cycles().

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

Definition at line 243 of file Negative_Cycles.H.

Member Data Documentation

◆ cycle

template<AlephGraph GT, typename Cost_Type >
Path<GT> Aleph::Negative_Cycle_Item< GT, Cost_Type >::cycle

Closed path: is_cycle() holds, every arc is a graph arc.

Definition at line 245 of file Negative_Cycles.H.

◆ length

template<AlephGraph GT, typename Cost_Type >
size_t Aleph::Negative_Cycle_Item< GT, Cost_Type >::length = 0

Number of arcs.

Definition at line 247 of file Negative_Cycles.H.

◆ total_cost

template<AlephGraph GT, typename Cost_Type >
Cost_Type Aleph::Negative_Cycle_Item< GT, Cost_Type >::total_cost = Cost_Type{0}

Sum of the arc weights, negative; for floating-point costs the exact sum, rounded once.

Definition at line 246 of file Negative_Cycles.H.


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