The Original CHomP Software
|
A helper class for determining a cycle that realizes the minimum. More...
#include <digraph.h>
Public Member Functions | |
PredecessorsCycle () | |
The default constructor. More... | |
void | add (int_t vertex, int_t predecessor, int_t stage) |
Adds a predecessor information for the given vertex at the given stage (path progression length). More... | |
template<class VectorType > | |
void | getCycle (VectorType &cycle) const |
Fills in a vector with a cycle that realizes the minimum, using the push_back method to add the consecutive vertices. More... | |
Protected Attributes | |
chomp::homology::multitable< chomp::homology::multitable< int_t > > | pred |
The array of predecessors at each stage. More... | |
int_t | searchStart |
The vertex number to start back-tracing the cycle from. More... | |
int_t | compSize |
The size of the component with the cycle to search. More... | |
A helper class for determining a cycle that realizes the minimum.
|
inline |
The default constructor.
Definition at line 3326 of file digraph.h.
|
inline |
Adds a predecessor information for the given vertex at the given stage (path progression length).
If called with stage == -n then this means that the minimizing vertex at stage n is provided (to trace back the cycle from) with the component size.
Definition at line 3332 of file digraph.h.
References compSize, pred, and searchStart.
|
inline |
Fills in a vector with a cycle that realizes the minimum, using the push_back method to add the consecutive vertices.
Definition at line 3348 of file digraph.h.
References compSize, pred, and searchStart.
|
protected |
The size of the component with the cycle to search.
Definition at line 3322 of file digraph.h.
Referenced by add(), and getCycle().
|
protected |
The array of predecessors at each stage.
The first index to the array is the stage, the second index is the vertex number, and the entry is the predecessor number.
Definition at line 3316 of file digraph.h.
Referenced by add(), and getCycle().
|
protected |
The vertex number to start back-tracing the cycle from.
Definition at line 3319 of file digraph.h.
Referenced by add(), and getCycle().