A generator for full components (for Steiner tree approximations) based on the Dreyfus-Wagner algorithm. More...
#include <ogdf/graphalg/steiner_tree/DreyfusWagnerFullComponentGenerator.h>
Classes | |
| struct | DWMData |
| class | SortedNodeListHashFunc |
Public Member Functions | |
| DreyfusWagnerFullComponentGenerator (const EdgeWeightedGraph< T > &G, const List< node > &terminals, const NodeArray< NodeArray< T >> &distance) | |
| The constructor. More... | |
| void | call (int restricted) |
| T | getSteinerTreeFor (const List< node > &terminals, EdgeWeightedGraphCopy< T > &tree) |
| Construct a Steiner tree for the given set of terminals. More... | |
Private Types | |
| using | NodePairs = Array< NodePair > |
Private Member Functions | |
| T | costOf (const List< node > &key) const |
| const DWMData | dataOf (const List< node > &key) const |
| void | insertSorted (List< node > &list, node v) const |
Private Attributes | |
| const NodeArray< NodeArray< T > > & | m_distance |
| A reference to the full distance matrix. More... | |
| const EdgeWeightedGraph< T > & | m_G |
| A reference to the graph instance. More... | |
| Hashing< List< node >, DWMData, SortedNodeListHashFunc > | m_map |
| A hash array for keys of size > 2. More... | |
| const List< node > & | m_terminals |
| A reference to the index-sorted list of terminals. More... | |
A generator for full components (for Steiner tree approximations) based on the Dreyfus-Wagner algorithm.
Definition at line 52 of file DreyfusWagnerFullComponentGenerator.h.
|
private |
Definition at line 58 of file DreyfusWagnerFullComponentGenerator.h.
|
inline |
The constructor.
Definition at line 113 of file DreyfusWagnerFullComponentGenerator.h.
|
inline |
Definition at line 121 of file DreyfusWagnerFullComponentGenerator.h.
|
inlineprivate |
Definition at line 87 of file DreyfusWagnerFullComponentGenerator.h.
|
inlineprivate |
Definition at line 77 of file DreyfusWagnerFullComponentGenerator.h.
|
inline |
Construct a Steiner tree for the given set of terminals.
Definition at line 210 of file DreyfusWagnerFullComponentGenerator.h.
|
inlineprivate |
Definition at line 97 of file DreyfusWagnerFullComponentGenerator.h.
|
private |
A reference to the full distance matrix.
Definition at line 56 of file DreyfusWagnerFullComponentGenerator.h.
|
private |
A reference to the graph instance.
Definition at line 54 of file DreyfusWagnerFullComponentGenerator.h.
|
private |
A hash array for keys of size > 2.
Definition at line 74 of file DreyfusWagnerFullComponentGenerator.h.
|
private |
A reference to the index-sorted list of terminals.
Definition at line 55 of file DreyfusWagnerFullComponentGenerator.h.