Obtain and provides information about components in a given blowup graph. More...
#include <ogdf/graphalg/steiner_tree/goemans/BlowupComponents.h>
Public Member Functions | |
BlowupComponents (const BlowupGraph< T > &blowupGraph) | |
Find all components in the blowup graph and initialize information them. More... | |
const T & | cost (int id) const |
Return total cost of a given component. More... | |
int | id (node v) const |
Return the component id a given node is contained in. More... | |
edge | rootEdge (int id) const |
Return the edge coming from the root of a given component. More... | |
void | setRootEdge (int id, edge e) |
Set the edge coming from the root for a given component. More... | |
int | size () const |
Return number of components. More... | |
const ArrayBuffer< node > & | terminals (int id) const |
Return list of terminals for a given component. More... | |
Protected Member Functions | |
void | initializeComponent (edge rootEdge, const BlowupGraph< T > &blowupGraph) |
Initialize all information about the component starting with rootEdge in the blowup graph. More... | |
Protected Attributes | |
ArrayBuffer< T > | componentCost |
NodeArray< int > | componentId |
ArrayBuffer< edge > | componentRootEdge |
ArrayBuffer< ArrayBuffer< node > > | componentTerminals |
int | maxId |
Obtain and provides information about components in a given blowup graph.
Definition at line 55 of file BlowupComponents.h.
|
inline |
Find all components in the blowup graph and initialize information them.
Definition at line 114 of file BlowupComponents.h.
|
inline |
Return total cost of a given component.
Definition at line 153 of file BlowupComponents.h.
|
inline |
Return the component id a given node is contained in.
Definition at line 150 of file BlowupComponents.h.
|
inlineprotected |
Initialize all information about the component starting with rootEdge
in the blowup graph.
Definition at line 73 of file BlowupComponents.h.
|
inline |
Return the edge coming from the root of a given component.
Definition at line 162 of file BlowupComponents.h.
|
inline |
Set the edge coming from the root for a given component.
Definition at line 168 of file BlowupComponents.h.
|
inline |
Return number of components.
Definition at line 159 of file BlowupComponents.h.
|
inline |
Return list of terminals for a given component.
Definition at line 144 of file BlowupComponents.h.
|
protected |
Definition at line 68 of file BlowupComponents.h.
|
protected |
Definition at line 62 of file BlowupComponents.h.
|
protected |
Definition at line 66 of file BlowupComponents.h.
|
protected |
Definition at line 64 of file BlowupComponents.h.
|
protected |
Definition at line 70 of file BlowupComponents.h.