Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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.

Namespaces

namespace  ogdf
 The namespace for all OGDF objects.
 
namespace  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.
 
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.
 
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.