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 |
Manage witness set and core edges of a blowup graph.
Definition at line 200 of file MinSteinerTreeGoemans139.h.
|
inlineexplicit |
Definition at line 284 of file MinSteinerTreeGoemans139.h.
|
inlineprivate |
Add a core edge.
Definition at line 231 of file MinSteinerTreeGoemans139.h.
|
inlineprivate |
Add e to W(f)
Definition at line 237 of file MinSteinerTreeGoemans139.h.
|
inlineprivate |
Compute a random set of core edges.
Definition at line 244 of file MinSteinerTreeGoemans139.h.
|
inline |
Return list of core edges (implemented by nodes)
Definition at line 385 of file MinSteinerTreeGoemans139.h.
|
inline |
Remove a core edge.
Definition at line 392 of file MinSteinerTreeGoemans139.h.
|
inline |
Find a "random" set of core edges and "replace" found edges by nodes, also find the witness sets for the core edges.
| blowupGraph | the blowup graph |
| capacity | the capacities of the edges in the blowup graph |
| terminals | the terminals in the blowup graph |
Definition at line 296 of file MinSteinerTreeGoemans139.h.
|
inline |
Copy witness sets and core edges for a given copy map.
Definition at line 358 of file MinSteinerTreeGoemans139.h.
|
inline |
Return the number of witnesses of an edge.
Definition at line 407 of file MinSteinerTreeGoemans139.h.
|
inline |
Return list of loss edges f in W(e)
Definition at line 413 of file MinSteinerTreeGoemans139.h.
|
private |
the core edges as nodes
Definition at line 204 of file MinSteinerTreeGoemans139.h.
|
private |
Definition at line 202 of file MinSteinerTreeGoemans139.h.
|
private |
Definition at line 227 of file MinSteinerTreeGoemans139.h.
|
private |
Definition at line 226 of file MinSteinerTreeGoemans139.h.