Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness Class Reference

Manage witness set and core edges of a blowup graph. More...

Public Member Functions

 CoreWitness (std::minstd_rand &rng)
 
const List< node > & core () const
 Return list of core edges (implemented by nodes) More...
 
void delCore (node e)
 Remove a core edge. More...
 
void init (EdgeWeightedGraphCopy< T > &blowupGraph, EdgeArray< int > &capacity, const List< node > &terminals)
 Find a "random" set of core edges and "replace" found edges by nodes, also find the witness sets for the core edges. More...
 
void makeCopy (const HashArray< edge, edge > &edgeMap)
 Copy witness sets and core edges for a given copy map. More...
 
int numberOfWitnesses (edge e) const
 Return the number of witnesses of an edge. More...
 
const List< edge > & witnessList (node e) const
 Return list of loss edges f in W(e) More...
 

Private Member Functions

void addCore (node e)
 Add a core edge. More...
 
void addWitness (node e, edge f)
 Add e to W(f) More...
 
void computeRandomCoreEdges (const EdgeWeightedGraphCopy< T > &G, const List< node > &terminals, EdgeArray< bool > &isInTree)
 Compute a random set of core edges. More...
 

Private Attributes

List< node > m_coreEdges
 the core edges as nodes More...
 
std::minstd_rand & m_rng
 
NodeArray< List< edge > > witness
 
EdgeArray< int > witnessCard
 

Detailed Description

template<typename T>
class ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness

Manage witness set and core edges of a blowup graph.

Definition at line 200 of file MinSteinerTreeGoemans139.h.

Constructor & Destructor Documentation

◆ CoreWitness()

template<typename T >
ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::CoreWitness ( std::minstd_rand &  rng)
inlineexplicit

Definition at line 284 of file MinSteinerTreeGoemans139.h.

Member Function Documentation

◆ addCore()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::addCore ( node  e)
inlineprivate

Add a core edge.

Remarks
Note that core edges are implemented by nodes in the blowup graph

Definition at line 231 of file MinSteinerTreeGoemans139.h.

◆ addWitness()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::addWitness ( node  e,
edge  f 
)
inlineprivate

Add e to W(f)

Definition at line 237 of file MinSteinerTreeGoemans139.h.

◆ computeRandomCoreEdges()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::computeRandomCoreEdges ( const EdgeWeightedGraphCopy< T > &  G,
const List< node > &  terminals,
EdgeArray< bool > &  isInTree 
)
inlineprivate

Compute a random set of core edges.

Definition at line 244 of file MinSteinerTreeGoemans139.h.

◆ core()

template<typename T >
const List<node>& ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::core ( ) const
inline

Return list of core edges (implemented by nodes)

Definition at line 385 of file MinSteinerTreeGoemans139.h.

◆ delCore()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::delCore ( node  e)
inline

Remove a core edge.

Note
the blowup graph is not affected

Definition at line 392 of file MinSteinerTreeGoemans139.h.

◆ init()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::init ( EdgeWeightedGraphCopy< T > &  blowupGraph,
EdgeArray< int > &  capacity,
const List< node > &  terminals 
)
inline

Find a "random" set of core edges and "replace" found edges by nodes, also find the witness sets for the core edges.

Parameters
blowupGraphthe blowup graph
capacitythe capacities of the edges in the blowup graph
terminalsthe terminals in the blowup graph

Definition at line 296 of file MinSteinerTreeGoemans139.h.

◆ makeCopy()

template<typename T >
void ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::makeCopy ( const HashArray< edge, edge > &  edgeMap)
inline

Copy witness sets and core edges for a given copy map.

Definition at line 358 of file MinSteinerTreeGoemans139.h.

◆ numberOfWitnesses()

template<typename T >
int ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::numberOfWitnesses ( edge  e) const
inline

Return the number of witnesses of an edge.

Definition at line 407 of file MinSteinerTreeGoemans139.h.

◆ witnessList()

template<typename T >
const List<edge>& ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::witnessList ( node  e) const
inline

Return list of loss edges f in W(e)

Definition at line 413 of file MinSteinerTreeGoemans139.h.

Member Data Documentation

◆ m_coreEdges

template<typename T >
List<node> ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::m_coreEdges
private

the core edges as nodes

Definition at line 204 of file MinSteinerTreeGoemans139.h.

◆ m_rng

template<typename T >
std::minstd_rand& ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::m_rng
private

Definition at line 202 of file MinSteinerTreeGoemans139.h.

◆ witness

template<typename T >
NodeArray< List<edge> > ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::witness
private

Definition at line 227 of file MinSteinerTreeGoemans139.h.

◆ witnessCard

template<typename T >
EdgeArray<int> ogdf::MinSteinerTreeGoemans139< T >::UFCR::CoreWitness::witnessCard
private

Definition at line 226 of file MinSteinerTreeGoemans139.h.


The documentation for this class was generated from the following file: