Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::MinSteinerTreeZelikovsky< T > Class Template Reference

This class implements the 11/6-approximation algorithm by Zelikovsky for the minimum Steiner tree problem along with variants and practical improvements. More...

#include <ogdf/graphalg/MinSteinerTreeZelikovsky.h>

+ Inheritance diagram for ogdf::MinSteinerTreeZelikovsky< T >:

Public Types

enum  Pass { Pass::one, Pass::multi }
 Enables a heuristic version (for TG exhaustive and voronoi only) More...
 
template<typename TYPE >
using Save = steiner_tree::Save< TYPE >
 
enum  SaveCalculation { SaveCalculation::staticEnum, SaveCalculation::staticLCATree, SaveCalculation::dynamicLCATree, SaveCalculation::hybrid }
 Different methods for obtaining save edges. More...
 
template<typename TYPE >
using Triple = steiner_tree::Triple< TYPE >
 
enum  TripleGeneration { TripleGeneration::exhaustive, TripleGeneration::voronoi, TripleGeneration::ondemand }
 Choice of triple generation. More...
 
enum  TripleReduction { TripleReduction::on, TripleReduction::off }
 Switches immediate triple dropping. More...
 
enum  WinCalculation { WinCalculation::absolute, WinCalculation::relative }
 Choice of objective function. More...
 

Public Member Functions

 MinSteinerTreeZelikovsky (WinCalculation wc=WinCalculation::absolute, TripleGeneration tg=TripleGeneration::voronoi, SaveCalculation sc=SaveCalculation::hybrid, TripleReduction tr=TripleReduction::on, Pass pass=Pass::multi)
 
virtual ~MinSteinerTreeZelikovsky ()
 
virtual T call (const EdgeWeightedGraph< T > &G, const List< node > &terminals, const NodeArray< bool > &isTerminal, EdgeWeightedGraphCopy< T > *&finalSteinerTree) override
 Builds a minimum Steiner tree given a weighted graph and a list of terminals. More...
 
void forceAPSP (bool force=true)
 For the 3-restricted case, it is sufficient to compute an SSSP from every terminal instead of doing a full APSP. More...
 
long numberOfContractedTriples () const
 Returns the number of contracted triples. More...
 
long numberOfGeneratedTriples () const
 Returns the number of generated triples. More...
 
long numberOfTripleLookUps () const
 Returns the number of triple lookups during execution time. More...
 
void pass (Pass p)
 Sets type of pass. More...
 
Pass pass () const
 Returns type of pass currently in use. More...
 
void saveCalculation (SaveCalculation sv)
 Sets type of save calculation. More...
 
SaveCalculation saveCalculation () const
 Returns type of save calculation currently in use. More...
 
void tripleGeneration (TripleGeneration tg)
 Sets type of triple generation. More...
 
TripleGeneration tripleGeneration () const
 Returns type of triple generation currently in use. More...
 
void tripleReduction (TripleReduction tr)
 Sets type of triple reduction. More...
 
TripleReduction tripleReduction () const
 Returns type of triple reduction currently in use. More...
 
void winCalculation (WinCalculation wc)
 Sets type of gain calculation. More...
 
WinCalculation winCalculation () const
 Returns type of gain calculation currently in use. More...
 
- Public Member Functions inherited from ogdf::MinSteinerTreeModule< T >
 MinSteinerTreeModule ()
 
virtual ~MinSteinerTreeModule ()
 

Protected Member Functions

double calcWin (double gain, T cost) const
 Calculate the win. More...
 
void computeDistanceMatrix ()
 Computes the distance matrix for the original graph. More...
 
virtual T computeSteinerTree (const EdgeWeightedGraph< T > &G, const List< node > &terminals, const NodeArray< bool > &isTerminal, EdgeWeightedGraphCopy< T > *&finalSteinerTree) override
 Builds a minimum Steiner tree given a weighted graph and a list of terminals. More...
 
void contractTriple (const Triple< T > &triple, Save< T > &save, NodeArray< bool > &isNewTerminal)
 Contracts a triple and updates the save data structure. More...
 
void generateExhaustiveTriples (const Save< T > &save)
 Generates all possible triples. More...
 
void generateInitialTerminalSpanningTree (EdgeWeightedGraphCopy< T > &steinerTree)
 
void generateTriple (node u, node v, node w, node center, const T &minCost, const Save< T > &save)
 Add a found triple to the triples list. More...
 
void generateTriples (const Save< T > &save)
 Generates triples according to the chosen option. More...
 
void generateVoronoiTriples (const Save< T > &save)
 Generates triples according to voronoi regions. More...
 
void markUnreachablesInDistanceMatrix (NodeArray< T > &dist, const NodeArray< edge > &pred)
 Mark unreachable nodes in distance matrix by setting their distance to infinity (numeric_limits<T>::max()) More...
 
void multiPass (Save< T > &save, NodeArray< bool > &isNewTerminal)
 Contraction phase for the original version of the algorithm. More...
 
void onePass (Save< T > &save, NodeArray< bool > &isNewTerminal)
 Contraction phase for the one pass heuristic. More...
 
void tripleOnDemand (Save< T > &save, NodeArray< bool > &isNewTerminal)
 Contraction phase for algorithm generating triples on demand. More...
 
void updateBestCenter (node x, node &center, T &minCost, const NodeArray< T > &dist1, const NodeArray< T > &dist2, const NodeArray< T > &dist3) const
 Update center node if it is the best so far. More...
 

Private Attributes

NodeArray< NodeArray< T > > m_distance
 The distance matrix. More...
 
const NodeArray< bool > * m_isTerminal
 Incidence vector for terminal nodes. More...
 
const EdgeWeightedGraph< T > * m_originalGraph
 The original edge-weighted graph. More...
 
Pass m_pass
 Chosen option for pass. More...
 
SaveCalculation m_saveCalculation
 Chosen option for save calculation. More...
 
bool m_ssspDistances
 True iff we only compute SSSP from terminals instead of APSP for full component construction. More...
 
const List< node > * m_terminals
 List of terminal nodes. More...
 
TripleGeneration m_tripleGeneration
 Chosen option for triple generation. More...
 
long m_tripleLookUps
 Number of triple lookups. More...
 
TripleReduction m_tripleReduction
 Chosen option for triple reduction. More...
 
List< Triple< T > > m_triples
 The list of triples during the algorithm. More...
 
long m_triplesContracted
 Number of contracted triples. More...
 
long m_triplesGenerated
 Number of generated triples. More...
 
WinCalculation m_winCalculation
 Chosen option for gain calculation. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ogdf::MinSteinerTreeModule< T >
static void allPairShortestPaths (const EdgeWeightedGraph< T > &G, const List< node > &nonterminals, NodeArray< NodeArray< T > > &distance, NodeArray< NodeArray< edge > > &pred)
 Undirected All-pair-shortest-paths (Floyd-Warshall) over non-terminal nodes of G. More...
 
static void allPairShortestPathsDetour (const EdgeWeightedGraph< T > &G, const List< node > &nonterminals, NodeArray< NodeArray< T > > &distance, NodeArray< NodeArray< edge > > &pred)
 
static void allPairShortestPathsStrict (const EdgeWeightedGraph< T > &G, const NodeArray< bool > &isTerminal, NodeArray< NodeArray< T > > &distance, NodeArray< NodeArray< edge > > &pred)
 
static void drawSteinerTreeSVG (const EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< bool > &isTerminal, const char *filename)
 Writes a SVG that shows only the given Steiner tree. More...
 
static void drawSVG (const EdgeWeightedGraph< T > &G, const NodeArray< bool > &isTerminal, const EdgeWeightedGraphCopy< T > &steinerTree, const char *filename)
 Writes an SVG file of a minimum Steiner tree in the original graph. More...
 
static bool isQuasiBipartite (const EdgeWeightedGraph< T > &G, const NodeArray< bool > &isTerminal)
 Checks in O(n + m) time if a given Steiner tree problem instance is quasi-bipartite. More...
 
static bool isSteinerTree (const EdgeWeightedGraph< T > &G, const List< node > &terminals, const NodeArray< bool > &isTerminal, const EdgeWeightedGraphCopy< T > &steinerTree)
 Checks in O(n) time if a given tree is acually a Steiner Tree. More...
 
static T pruneAllDanglingSteinerPaths (EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< bool > &isTerminal)
 Prune Steiner nodes with degree 1 and their paths to terminal or branching nodes. More...
 
static T pruneDanglingSteinerPathFrom (EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< bool > &isTerminal, node start)
 Prune the dangling Steiner path beginning at a given node only. More...
 
static T pruneDanglingSteinerPathsFrom (EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< bool > &isTerminal, const List< node > &start)
 Prune dangling Steiner paths beginning at given nodes only. More...
 
static T removeCyclesFrom (EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< bool > &isTerminal)
 Remove remaining cycles from an Steiner "almost" tree. More...
 
static void singleSourceShortestPaths (const EdgeWeightedGraph< T > &G, node source, const NodeArray< bool > &isTerminal, NodeArray< T > &distance, NodeArray< edge > &pred)
 Undirected Single-source-shortest-paths (Dijkstra) over non-terminal nodes of G. More...
 
static void singleSourceShortestPathsDetour (const EdgeWeightedGraph< T > &G, node source, const NodeArray< bool > &isTerminal, NodeArray< T > &distance, NodeArray< edge > &pred)
 
static void singleSourceShortestPathsStrict (const EdgeWeightedGraph< T > &G, node source, const NodeArray< bool > &isTerminal, NodeArray< T > &distance, NodeArray< edge > &pred)
 

Detailed Description

template<typename T>
class ogdf::MinSteinerTreeZelikovsky< T >

This class implements the 11/6-approximation algorithm by Zelikovsky for the minimum Steiner tree problem along with variants and practical improvements.

This implementation is based on:

(A. Zelikovsky, An 11/6-Approximation Algorithm for the Network Steiner Problem, Algorithmica, volume 9, number 5, pages 463-470, Springer, 1993)

(A. Zelikovsky, A faster approximation algorithm for the Steiner problem in graphs, Information Processing Letters, volume 46, number 2, pages 79-83, 1993)

(A. Zelikovsky, Better approximation bound for the network and euclidean Steiner tree problems, Technical Report, 2006)

Definition at line 65 of file MinSteinerTreeZelikovsky.h.

Member Typedef Documentation

◆ Save

template<typename T >
template<typename TYPE >
using ogdf::MinSteinerTreeZelikovsky< T >::Save = steiner_tree::Save<TYPE>

Definition at line 67 of file MinSteinerTreeZelikovsky.h.

◆ Triple

template<typename T >
template<typename TYPE >
using ogdf::MinSteinerTreeZelikovsky< T >::Triple = steiner_tree::Triple<TYPE>

Definition at line 68 of file MinSteinerTreeZelikovsky.h.

Member Enumeration Documentation

◆ Pass

template<typename T >
enum ogdf::MinSteinerTreeZelikovsky::Pass
strong

Enables a heuristic version (for TG exhaustive and voronoi only)

Enumerator
one 

heuristic: evaluate all triples, sort them descending by gain, traverse sorted triples once, contract when possible

multi 

normal, greedy version

Definition at line 107 of file MinSteinerTreeZelikovsky.h.

◆ SaveCalculation

template<typename T >
enum ogdf::MinSteinerTreeZelikovsky::SaveCalculation
strong

Different methods for obtaining save edges.

Enumerator
staticEnum 

Stores explicitly the save edge for every pair of terminals. Needs O(n^2) space but has fast query times.

staticLCATree 

Builds a "weight tree" (save edges are inner nodes, terminals are leaves and searches save edges via LCA calculation of two nodes.

dynamicLCATree 

Same as staticLCATree but each time a triple has been contracted the "weight tree" is updated dynamically rather than completely new from scratch. Has the fastest update time.

hybrid 

Uses staticEnum for the triple generation phase (many queries) and dynamicLCATree during the contraction phase (few updates)

Definition at line 90 of file MinSteinerTreeZelikovsky.h.

◆ TripleGeneration

template<typename T >
enum ogdf::MinSteinerTreeZelikovsky::TripleGeneration
strong

Choice of triple generation.

Enumerator
exhaustive 

try all possibilities

voronoi 

use voronoi regions

ondemand 

generate triples "on the fly", only usable with WinCalculation::absolute

Definition at line 77 of file MinSteinerTreeZelikovsky.h.

◆ TripleReduction

template<typename T >
enum ogdf::MinSteinerTreeZelikovsky::TripleReduction
strong

Switches immediate triple dropping.

Enumerator
on 

removes triples as soon as their gain is known to be non positive

off 

keeps triples all the time

Definition at line 84 of file MinSteinerTreeZelikovsky.h.

◆ WinCalculation

template<typename T >
enum ogdf::MinSteinerTreeZelikovsky::WinCalculation
strong

Choice of objective function.

Enumerator
absolute 

win=gain-cost

relative 

win=gain/cost

Definition at line 71 of file MinSteinerTreeZelikovsky.h.

Constructor & Destructor Documentation

◆ MinSteinerTreeZelikovsky()

◆ ~MinSteinerTreeZelikovsky()

template<typename T >
virtual ogdf::MinSteinerTreeZelikovsky< T >::~MinSteinerTreeZelikovsky ( )
inlinevirtual

Definition at line 129 of file MinSteinerTreeZelikovsky.h.

Member Function Documentation

◆ calcWin()

template<typename T >
double ogdf::MinSteinerTreeZelikovsky< T >::calcWin ( double  gain,
T  cost 
) const
inlineprotected

Calculate the win.

Definition at line 360 of file MinSteinerTreeZelikovsky.h.

◆ call()

template<typename T >
virtual T ogdf::MinSteinerTreeZelikovsky< T >::call ( const EdgeWeightedGraph< T > &  G,
const List< node > &  terminals,
const NodeArray< bool > &  isTerminal,
EdgeWeightedGraphCopy< T > *&  finalSteinerTree 
)
inlineoverridevirtual

Builds a minimum Steiner tree given a weighted graph and a list of terminals.

Parameters
GThe weighted input graph
terminalsThe list of terminal nodes
isTerminalA bool array of terminals
finalSteinerTreeThe final Steiner tree
Returns
The objective value (sum of edge costs) of the final Steiner tree

Reimplemented from ogdf::MinSteinerTreeModule< T >.

Definition at line 131 of file MinSteinerTreeZelikovsky.h.

◆ computeDistanceMatrix()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::computeDistanceMatrix ( )
protected

Computes the distance matrix for the original graph.

Definition at line 477 of file MinSteinerTreeZelikovsky.h.

◆ computeSteinerTree()

template<typename T >
T ogdf::MinSteinerTreeZelikovsky< T >::computeSteinerTree ( const EdgeWeightedGraph< T > &  G,
const List< node > &  terminals,
const NodeArray< bool > &  isTerminal,
EdgeWeightedGraphCopy< T > *&  finalSteinerTree 
)
overrideprotectedvirtual

Builds a minimum Steiner tree given a weighted graph and a list of terminals.

See also
MinSteinerTreeModule::call
Parameters
GThe weighted input graph
terminalsThe list of terminal nodes
isTerminalA bool array of terminals
finalSteinerTreeThe final Steiner tree
Returns
The objective value (sum of edge costs) of the final Steiner tree

Implements ogdf::MinSteinerTreeModule< T >.

Definition at line 408 of file MinSteinerTreeZelikovsky.h.

◆ contractTriple()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::contractTriple ( const Triple< T > &  triple,
Save< T > &  save,
NodeArray< bool > &  isNewTerminal 
)
inlineprotected

Contracts a triple and updates the save data structure.

Parameters
tripletriple to be contracted
savesave data structure
isNewTerminaltrue for nodes to be interpreted as terminals

Definition at line 329 of file MinSteinerTreeZelikovsky.h.

◆ forceAPSP()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::forceAPSP ( bool  force = true)
inline

For the 3-restricted case, it is sufficient to compute an SSSP from every terminal instead of doing a full APSP.

In case a full APSP is faster, use this method.

Parameters
forceTrue to force APSP instead of SSSP.

Definition at line 144 of file MinSteinerTreeZelikovsky.h.

◆ generateExhaustiveTriples()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::generateExhaustiveTriples ( const Save< T > &  save)
protected

Generates all possible triples.

Parameters
savedata structure for determining save edges

Definition at line 528 of file MinSteinerTreeZelikovsky.h.

◆ generateInitialTerminalSpanningTree()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::generateInitialTerminalSpanningTree ( EdgeWeightedGraphCopy< T > &  steinerTree)
inlineprotected

Definition at line 371 of file MinSteinerTreeZelikovsky.h.

◆ generateTriple()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::generateTriple ( node  u,
node  v,
node  w,
node  center,
const T &  minCost,
const Save< T > &  save 
)
inlineprotected

Add a found triple to the triples list.

(Just a helper to avoid code duplication.)

Definition at line 281 of file MinSteinerTreeZelikovsky.h.

◆ generateTriples()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::generateTriples ( const Save< T > &  save)
inlineprotected

Generates triples according to the chosen option.

See also
TripleGeneration
Parameters
savedata structure for calculation save edges

Definition at line 313 of file MinSteinerTreeZelikovsky.h.

◆ generateVoronoiTriples()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::generateVoronoiTriples ( const Save< T > &  save)
protected

Generates triples according to voronoi regions.

Parameters
savedata structure for calculation save edges

Definition at line 495 of file MinSteinerTreeZelikovsky.h.

◆ markUnreachablesInDistanceMatrix()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::markUnreachablesInDistanceMatrix ( NodeArray< T > &  dist,
const NodeArray< edge > &  pred 
)
inlineprotected

Mark unreachable nodes in distance matrix by setting their distance to infinity (numeric_limits<T>::max())

Definition at line 249 of file MinSteinerTreeZelikovsky.h.

◆ multiPass()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::multiPass ( Save< T > &  save,
NodeArray< bool > &  isNewTerminal 
)
protected

Contraction phase for the original version of the algorithm.

See also
MinSteinerTreeZelikovsky::multi
Parameters
savesave data structure
isNewTerminaltrue for nodes to be interpreted as terminals

Definition at line 658 of file MinSteinerTreeZelikovsky.h.

◆ numberOfContractedTriples()

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::numberOfContractedTriples ( ) const
inline

Returns the number of contracted triples.

Definition at line 215 of file MinSteinerTreeZelikovsky.h.

◆ numberOfGeneratedTriples()

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::numberOfGeneratedTriples ( ) const
inline

Returns the number of generated triples.

Definition at line 209 of file MinSteinerTreeZelikovsky.h.

◆ numberOfTripleLookUps()

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::numberOfTripleLookUps ( ) const
inline

Returns the number of triple lookups during execution time.

Definition at line 221 of file MinSteinerTreeZelikovsky.h.

◆ onePass()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::onePass ( Save< T > &  save,
NodeArray< bool > &  isNewTerminal 
)
protected

Contraction phase for the one pass heuristic.

See also
MinSteinerTreeZelikovsky::one
Parameters
savesave data structure
isNewTerminaltrue for nodes to be interpreted as terminals

Definition at line 637 of file MinSteinerTreeZelikovsky.h.

◆ pass() [1/2]

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::pass ( Pass  p)
inline

Sets type of pass.

See also
MinSteinerTreeZelikovsky::Pass

Definition at line 198 of file MinSteinerTreeZelikovsky.h.

◆ pass() [2/2]

template<typename T >
Pass ogdf::MinSteinerTreeZelikovsky< T >::pass ( ) const
inline

Returns type of pass currently in use.

See also
MinSteinerTreeZelikovsky::Pass

Definition at line 203 of file MinSteinerTreeZelikovsky.h.

◆ saveCalculation() [1/2]

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::saveCalculation ( SaveCalculation  sv)
inline

Sets type of save calculation.

See also
MinSteinerTreeZelikovsky::SaveCalculation

Definition at line 186 of file MinSteinerTreeZelikovsky.h.

◆ saveCalculation() [2/2]

template<typename T >
SaveCalculation ogdf::MinSteinerTreeZelikovsky< T >::saveCalculation ( ) const
inline

Returns type of save calculation currently in use.

See also
MinSteinerTreeZelikovsky::SaveCalculation

Definition at line 192 of file MinSteinerTreeZelikovsky.h.

◆ tripleGeneration() [1/2]

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::tripleGeneration ( TripleGeneration  tg)
inline

Sets type of triple generation.

See also
MinSteinerTreeZelikovsky::TripleGeneration

Definition at line 162 of file MinSteinerTreeZelikovsky.h.

◆ tripleGeneration() [2/2]

template<typename T >
TripleGeneration ogdf::MinSteinerTreeZelikovsky< T >::tripleGeneration ( ) const
inline

Returns type of triple generation currently in use.

See also
MinSteinerTreeZelikovsky::TripleGeneration

Definition at line 168 of file MinSteinerTreeZelikovsky.h.

◆ tripleOnDemand()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::tripleOnDemand ( Save< T > &  save,
NodeArray< bool > &  isNewTerminal 
)
protected

Contraction phase for algorithm generating triples on demand.

See also
MinSteinerTreeZelikovsky::ondemand
Parameters
savesave data structure
isNewTerminaltrue for nodes to be interpreted as terminals

Definition at line 552 of file MinSteinerTreeZelikovsky.h.

◆ tripleReduction() [1/2]

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::tripleReduction ( TripleReduction  tr)
inline

Sets type of triple reduction.

See also
MinSteinerTreeZelikovsky::TripleReduction

Definition at line 174 of file MinSteinerTreeZelikovsky.h.

◆ tripleReduction() [2/2]

template<typename T >
TripleReduction ogdf::MinSteinerTreeZelikovsky< T >::tripleReduction ( ) const
inline

Returns type of triple reduction currently in use.

See also
MinSteinerTreeZelikovsky::TripleReduction

Definition at line 180 of file MinSteinerTreeZelikovsky.h.

◆ updateBestCenter()

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::updateBestCenter ( node  x,
node &  center,
T &  minCost,
const NodeArray< T > &  dist1,
const NodeArray< T > &  dist2,
const NodeArray< T > &  dist3 
) const
inlineprotected

Update center node if it is the best so far.

(Just a helper to avoid code duplication.)

Parameters
xThe node to test
centerThe returned best center node
minCostThe returned cost of the component with that node
dist1SSSP distance vector of the first terminal
dist2SSSP distance vector of the second terminal
dist3SSSP distance vector of the third terminal

Definition at line 266 of file MinSteinerTreeZelikovsky.h.

◆ winCalculation() [1/2]

template<typename T >
void ogdf::MinSteinerTreeZelikovsky< T >::winCalculation ( WinCalculation  wc)
inline

Sets type of gain calculation.

See also
MinSteinerTreeZelikovsky::WinCalculation

Definition at line 150 of file MinSteinerTreeZelikovsky.h.

◆ winCalculation() [2/2]

template<typename T >
WinCalculation ogdf::MinSteinerTreeZelikovsky< T >::winCalculation ( ) const
inline

Returns type of gain calculation currently in use.

See also
MinSteinerTreeZelikovsky::WinCalculation

Definition at line 156 of file MinSteinerTreeZelikovsky.h.

Member Data Documentation

◆ m_distance

template<typename T >
NodeArray<NodeArray<T> > ogdf::MinSteinerTreeZelikovsky< T >::m_distance
private

The distance matrix.

Definition at line 398 of file MinSteinerTreeZelikovsky.h.

◆ m_isTerminal

template<typename T >
const NodeArray<bool>* ogdf::MinSteinerTreeZelikovsky< T >::m_isTerminal
private

Incidence vector for terminal nodes.

Definition at line 396 of file MinSteinerTreeZelikovsky.h.

◆ m_originalGraph

template<typename T >
const EdgeWeightedGraph<T>* ogdf::MinSteinerTreeZelikovsky< T >::m_originalGraph
private

The original edge-weighted graph.

Definition at line 395 of file MinSteinerTreeZelikovsky.h.

◆ m_pass

template<typename T >
Pass ogdf::MinSteinerTreeZelikovsky< T >::m_pass
private

Chosen option for pass.

See also
Pass

Definition at line 392 of file MinSteinerTreeZelikovsky.h.

◆ m_saveCalculation

template<typename T >
SaveCalculation ogdf::MinSteinerTreeZelikovsky< T >::m_saveCalculation
private

Chosen option for save calculation.

See also
SaveCalculation

Definition at line 390 of file MinSteinerTreeZelikovsky.h.

◆ m_ssspDistances

template<typename T >
bool ogdf::MinSteinerTreeZelikovsky< T >::m_ssspDistances
private

True iff we only compute SSSP from terminals instead of APSP for full component construction.

Definition at line 393 of file MinSteinerTreeZelikovsky.h.

◆ m_terminals

template<typename T >
const List<node>* ogdf::MinSteinerTreeZelikovsky< T >::m_terminals
private

List of terminal nodes.

Definition at line 397 of file MinSteinerTreeZelikovsky.h.

◆ m_tripleGeneration

template<typename T >
TripleGeneration ogdf::MinSteinerTreeZelikovsky< T >::m_tripleGeneration
private

Chosen option for triple generation.

See also
TripleGeneration

Definition at line 389 of file MinSteinerTreeZelikovsky.h.

◆ m_tripleLookUps

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::m_tripleLookUps
private

Number of triple lookups.

Definition at line 403 of file MinSteinerTreeZelikovsky.h.

◆ m_tripleReduction

template<typename T >
TripleReduction ogdf::MinSteinerTreeZelikovsky< T >::m_tripleReduction
private

Chosen option for triple reduction.

See also
TripleReduction

Definition at line 391 of file MinSteinerTreeZelikovsky.h.

◆ m_triples

template<typename T >
List<Triple<T> > ogdf::MinSteinerTreeZelikovsky< T >::m_triples
private

The list of triples during the algorithm.

Definition at line 399 of file MinSteinerTreeZelikovsky.h.

◆ m_triplesContracted

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::m_triplesContracted
private

Number of contracted triples.

Definition at line 402 of file MinSteinerTreeZelikovsky.h.

◆ m_triplesGenerated

template<typename T >
long ogdf::MinSteinerTreeZelikovsky< T >::m_triplesGenerated
private

Number of generated triples.

Definition at line 401 of file MinSteinerTreeZelikovsky.h.

◆ m_winCalculation

template<typename T >
WinCalculation ogdf::MinSteinerTreeZelikovsky< T >::m_winCalculation
private

Chosen option for gain calculation.

See also
WinCalculation

Definition at line 388 of file MinSteinerTreeZelikovsky.h.


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