Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::negative_cycles_detail::Decomposition_Scratch Struct Reference

Scratch space of offer_simple_components(), allocated once. More...

#include <Negative_Cycles.H>

Collaboration diagram for Aleph::negative_cycles_detail::Decomposition_Scratch:
[legend]

Public Member Functions

 Decomposition_Scratch (const size_t max_nodes, const size_t max_walk)
 

Public Attributes

Array< size_t > st_nodes
 Node stack.
 
Array< size_t > st_in_arc
 Arc entering each stacked node, aligned with st_nodes.
 
Array< size_t > component
 Arcs of the simple cycle being offered.
 

Detailed Description

Scratch space of offer_simple_components(), allocated once.

The stacks are used through a logical depth rather than with Array::remove_last(), which can contract (and so reallocate) the array when it empties out.

Definition at line 1502 of file Negative_Cycles.H.

Constructor & Destructor Documentation

◆ Decomposition_Scratch()

Aleph::negative_cycles_detail::Decomposition_Scratch::Decomposition_Scratch ( const size_t  max_nodes,
const size_t  max_walk 
)
inline
Parameters
[in]max_nodesUpper bound of the distinct nodes on the stack (the node count of the graph searched).
[in]max_walkUpper bound of the arcs of a walk.

Definition at line 1512 of file Negative_Cycles.H.

Member Data Documentation

◆ component

Array<size_t> Aleph::negative_cycles_detail::Decomposition_Scratch::component

Arcs of the simple cycle being offered.

Definition at line 1506 of file Negative_Cycles.H.

Referenced by Aleph::negative_cycles_detail::offer_simple_components().

◆ st_in_arc

Array<size_t> Aleph::negative_cycles_detail::Decomposition_Scratch::st_in_arc

Arc entering each stacked node, aligned with st_nodes.

Definition at line 1505 of file Negative_Cycles.H.

Referenced by Aleph::negative_cycles_detail::offer_simple_components().

◆ st_nodes

Array<size_t> Aleph::negative_cycles_detail::Decomposition_Scratch::st_nodes

Node stack.

Definition at line 1504 of file Negative_Cycles.H.

Referenced by Aleph::negative_cycles_detail::offer_simple_components().


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