This class implements the Minimum Steiner Tree 2-approximation algorithm by Kou et al.
More...
|
| void | calculateCompleteGraph (const EdgeWeightedGraph< T > &wG, const List< node > &terminals, EdgeArray< List< edge > > &predecessor, EdgeWeightedGraphCopy< T > &completeTerminalGraph) |
| | Builds a complete terminal 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 | insertPath (const List< edge > &ssspPred, EdgeWeightedGraphCopy< T > &finalSteinerTree, const EdgeWeightedGraph< T > &wG) |
| | Inserts a shortest path corresponding to an edge in the complete terminal graph. More...
|
| |
| void | reinsertShortestPaths (const EdgeWeightedGraphCopy< T > &completeTerminalGraph, const EdgeArray< List< edge > > &ssspPred, const NodeArray< edge > &mstPred, EdgeWeightedGraphCopy< T > &finalSteinerTree, const EdgeWeightedGraph< T > &wG) |
| | Swaps an edge in the complete terminal graph with the corresponding shortest path in the original graph. More...
|
| |
|
| 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) |
| |
template<typename T>
class ogdf::MinSteinerTreeKou< T >
This class implements the Minimum Steiner Tree 2-approximation algorithm by Kou et al.
This implementation is based on:
(L. Kou, G. Markowsky, L. Berman, A fast algorithm for Steiner trees, Acta Informatica, volumne 15, number 2, pages 141-145, 1981)
Definition at line 55 of file MinSteinerTreeKou.h.