#include <ogdf/graphalg/MinSteinerTreeRZLoss.h>
|
void | contractLoss (EdgeWeightedGraphCopy< T > &steinerTree, int compId) |
| Contracts the loss of a full component and integrates it into the given terminal-spanning tree. More...
|
|
double | extractMaxComponent (const EdgeWeightedGraphCopy< T > &steinerTree, int &maxCompId) |
| Traverses over all full components and finds the one with the highest win-objective. More...
|
|
template<typename TERMINAL_CONTAINER > |
T | gain (const TERMINAL_CONTAINER &terminals, const EdgeWeightedGraphCopy< T > &steinerTree) |
|
void | generateInitialTerminalSpanningTree (EdgeWeightedGraphCopy< T > &steinerTree, const NodeArray< NodeArray< T >> &distance, const NodeArray< NodeArray< edge >> &pred) |
| Builds a minimum terminal spanning tree (via a MST call on the complete terminal graph) More...
|
|
void | multiPass (EdgeWeightedGraphCopy< T > &steinerTree) |
| Contraction phase of the algorithm. More...
|
|
void | setup (EdgeWeightedGraphCopy< T > &tree) |
| Setup (build initial terminal-spanning tree, its save data structure, and find all components) More...
|
|
|
void | findFullComponentsDW (const EdgeWeightedGraphCopy< T > &tree, const NodeArray< NodeArray< T >> &distance, const NodeArray< NodeArray< edge >> &pred) |
| Find full components using algorithm by Dreyfus-Wagner. More...
|
|
void | findFullComponentsEMV (const EdgeWeightedGraphCopy< T > &tree) |
| Find full components using algorithm by Erickson et al. More...
|
|
void | findFull3Components (const EdgeWeightedGraphCopy< T > &tree, const NodeArray< NodeArray< T >> &distance, const NodeArray< NodeArray< edge >> &pred) |
| Find full components of size 3. More...
|
|
template<typename FCG > |
void | retrieveComponents (const FCG &fcg, const EdgeWeightedGraphCopy< T > &tree) |
| Auxiliary function to retrieve components by Dreyfus-Wagner/Erickson et al implementation. More...
|
|
template<typename T>
class ogdf::MinSteinerTreeRZLoss< T >::Main
Definition at line 140 of file MinSteinerTreeRZLoss.h.
◆ SaveStatic
template<typename T >
template<typename TYPE >
◆ Main()
◆ contractLoss()
Contracts the loss of a full component and integrates it into the given terminal-spanning tree.
- Parameters
-
steinerTree | The Steiner tree into which the full component is integrated |
compId | The full component to be contracted and inserted |
Definition at line 460 of file MinSteinerTreeRZLoss.h.
◆ extractMaxComponent()
Traverses over all full components and finds the one with the highest win-objective.
- Parameters
-
steinerTree | Current Steiner tree |
maxCompId | The index of the full component with highest win-objective |
- Returns
- the win-objective of the returned full component
Definition at line 410 of file MinSteinerTreeRZLoss.h.
◆ findFull3Components()
◆ findFullComponentsDW()
Find full components using algorithm by Dreyfus-Wagner.
- Parameters
-
tree | Current minimal terminal spanning tree |
distance | The distance matrix |
pred | The predecessor matrix for shortest paths |
Definition at line 370 of file MinSteinerTreeRZLoss.h.
◆ findFullComponentsEMV()
◆ gain()
template<typename T >
template<typename TERMINAL_CONTAINER >
\brief Calculates the gain for a full component
- *
- Parameters
-
terminals | The terminals of the full component |
steinerTree | Current Steiner tree |
- Returns
- the gain (cost of save edges) of the returned full component
Definition at line 438 of file MinSteinerTreeRZLoss.h.
◆ generateInitialTerminalSpanningTree()
Builds a minimum terminal spanning tree (via a MST call on the complete terminal graph)
- Parameters
-
steinerTree | The resulting minimum terminal spanning tree |
distance | The distance matrix |
pred | The predecessor matrix for shortest paths |
Definition at line 299 of file MinSteinerTreeRZLoss.h.
◆ getApproximation()
◆ multiPass()
Contraction phase of the algorithm.
- Parameters
-
steinerTree | the terminal-spanning tree to be modified |
Definition at line 387 of file MinSteinerTreeRZLoss.h.
◆ numberOfComponentLookUps()
◆ numberOfContractedComponents()
◆ numberOfGeneratedComponents()
◆ retrieveComponents()
template<typename T >
template<typename FCG >
Auxiliary function to retrieve components by Dreyfus-Wagner/Erickson et al implementation.
Definition at line 348 of file MinSteinerTreeRZLoss.h.
◆ setup()
Setup (build initial terminal-spanning tree, its save data structure, and find all components)
Definition at line 176 of file MinSteinerTreeRZLoss.h.
◆ m_componentsContracted
◆ m_componentsGenerated
◆ m_componentsLookUps
◆ m_fullCompStore
◆ m_G
◆ m_isNewTerminal
Incidence vector for nonterminal nodes marked as terminals for improvement.
Definition at line 242 of file MinSteinerTreeRZLoss.h.
◆ m_isTerminal
◆ m_restricted
◆ m_save
◆ m_terminals
The documentation for this class was generated from the following file: