A data structure to store full components. More...
#include <ogdf/graphalg/steiner_tree/FullComponentStore.h>
Inheritance diagram for ogdf::steiner_tree::FullComponentStore< T, ExtraDataType >:Classes | |
| struct | Metadata |
| struct | Metadata< Y, typename std::enable_if<!std::is_void< Y >::value >::type > |
Public Member Functions | |
| FullComponentStore (const EdgeWeightedGraph< T > &G, const List< node > &terminals, const NodeArray< bool > &isTerminal) | |
| T | cost (int i) const |
| Returns the sum of edge costs of this full component. More... | |
| template<typename Fun > | |
| void | foreachAdjEntry (int i, Fun f) const |
| template<typename Fun > | |
| void | foreachEdge (int id, const NodeArray< NodeArray< edge >> &pred, Fun f) const |
| template<typename Fun > | |
| void | foreachNode (int id, Fun f) const |
| template<typename Fun > | |
| void | foreachNode (int id, const NodeArray< NodeArray< edge >> &pred, Fun f) const |
| const EdgeWeightedGraph< T > & | graph () const |
| void | insert (const EdgeWeightedGraphCopy< T > &comp) |
| bool | isEmpty () const |
| Checks if the store does not contain any full components. More... | |
| bool | isTerminal (int id, node t) const |
| checks if a given node t is a terminal in the full component with given id More... | |
| bool | isTerminal (node v) const |
| node | original (node v) const |
| void | remove (int id) |
| int | size () const |
| Returns the number of full components in the store. More... | |
| adjEntry | start (int i) const |
| const Array< node > & | terminals (int id) const |
| Returns the list of terminals in the full component with given id. More... | |
Protected Attributes | |
| ArrayBuffer< Metadata< ExtraDataType > > | m_components |
| List of full components (based on metadata) More... | |
| EdgeWeightedGraph< T > | m_graph |
| Our graph representation for the full component store. More... | |
| const NodeArray< bool > & | m_isTerminal |
| Incidence vector for terminal nodes. More... | |
| NodeArray< node > | m_nodeCopy |
| Mapping of original terminals to m_graph nodes. More... | |
| NodeArray< node > | m_nodeOrig |
| Mapping of m_graph nodes to original nodes. More... | |
| const EdgeWeightedGraph< T > & | m_originalGraph |
| The original Steiner instance. More... | |
| const List< node > & | m_terminals |
| The terminal list of the original Steiner instance. More... | |
A data structure to store full components.
Definition at line 49 of file FullComponentStore.h.
|
inline |
Definition at line 88 of file FullComponentStore.h.
|
inline |
Returns the sum of edge costs of this full component.
Definition at line 214 of file FullComponentStore.h.
|
inline |
Definition at line 240 of file FullComponentStore.h.
|
inline |
Definition at line 274 of file FullComponentStore.h.
|
inline |
Definition at line 264 of file FullComponentStore.h.
|
inline |
Definition at line 286 of file FullComponentStore.h.
|
inline |
Definition at line 228 of file FullComponentStore.h.
|
inline |
Definition at line 102 of file FullComponentStore.h.
|
inline |
Checks if the store does not contain any full components.
Definition at line 187 of file FullComponentStore.h.
|
inline |
checks if a given node t is a terminal in the full component with given id
Definition at line 201 of file FullComponentStore.h.
|
inline |
Definition at line 208 of file FullComponentStore.h.
|
inline |
Definition at line 233 of file FullComponentStore.h.
|
inline |
Definition at line 151 of file FullComponentStore.h.
|
inline |
Returns the number of full components in the store.
Definition at line 181 of file FullComponentStore.h.
|
inline |
Definition at line 221 of file FullComponentStore.h.
|
inline |
Returns the list of terminals in the full component with given id.
Definition at line 193 of file FullComponentStore.h.
|
protected |
List of full components (based on metadata)
Definition at line 85 of file FullComponentStore.h.
|
protected |
Our graph representation for the full component store.
Definition at line 55 of file FullComponentStore.h.
|
protected |
Incidence vector for terminal nodes.
Definition at line 54 of file FullComponentStore.h.
|
protected |
Mapping of original terminals to m_graph nodes.
Definition at line 57 of file FullComponentStore.h.
|
protected |
Mapping of m_graph nodes to original nodes.
Definition at line 57 of file FullComponentStore.h.
|
protected |
The original Steiner instance.
Definition at line 52 of file FullComponentStore.h.
|
protected |
The terminal list of the original Steiner instance.
Definition at line 53 of file FullComponentStore.h.