Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

common_algorithms.h File Reference

Algorithms used by at least two functions of Steiner tree code or its internal helpers. More...

Go to the source code of this file.

Classes

class  ogdf::EdgeWeightedGraph< T >
 
class  ogdf::steiner_tree::Triple< T >
 This class represents a triple used by various contraction-based minimum Steiner tree approximations. More...
 

Namespaces

 ogdf
 The namespace for all OGDF objects.
 
 ogdf::steiner_tree
 

Functions

template<typename T >
node ogdf::steiner_tree::buildHeaviestEdgeInComponentTree (const EdgeWeightedGraphCopy< T > &inputTree, NodeArray< node > &externalNodes, NodeArray< edge > &treeEdge, Graph &outputTree)
 Given an edge-weighted tree, builds an auxiliary arborescence where each arc of the input tree is a node in the arborescence. More...
 
template<typename T >
void ogdf::steiner_tree::contractTripleInSteinerTree (const Triple< T > &t, EdgeWeightedGraphCopy< T > &st, edge e0, edge e1, edge e2)
 
template<typename T >
void ogdf::steiner_tree::contractTripleInSteinerTree (const Triple< T > &t, EdgeWeightedGraphCopy< T > &st, edge save0, edge save1, edge save2, edge &ne0, edge &ne1)
 Updates the Steiner tree by deleting save edges, removing all direct connections between the terminals of the contracted triple and connecting them through 0-cost edges. More...
 
template<typename T >
ogdf::steiner_tree::obtainFinalSteinerTree (const EdgeWeightedGraph< T > &G, const NodeArray< bool > &isTerminal, const NodeArray< bool > &isOriginalTerminal, EdgeWeightedGraphCopy< T > *&finalSteinerTree)
 

Detailed Description

Algorithms used by at least two functions of Steiner tree code or its internal helpers.

Author
Stephan Beyer
License:
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See README.md in the OGDF root directory for details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 or 3 as published by the Free Software Foundation; see the file LICENSE.txt included in the packaging of this file for details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/copyleft/gpl.html

Definition in file common_algorithms.h.