#include <steiner_components.hpp>
Public Member Functions | |
void | add (const steiner_component< Vertex, Dist > &component) |
int | size () const |
const steiner_component < Vertex, Dist > & | find (int id) const |
int | find_version (int id) const |
void | clear () |
Class responsible for storing all the components. There are versions of components: ones with the same elements, but different sink vertex. All versions are stored in memory only once.
Definition at line 29 of file steiner_components.hpp.
|
inline |
Adds a new component in all its versions.
Definition at line 36 of file steiner_components.hpp.
|
inline |
Removes all data.
Definition at line 66 of file steiner_components.hpp.
|
inline |
Finds a component by its unique id.
Definition at line 53 of file steiner_components.hpp.
|
inline |
Finds a version of component by its id.
Definition at line 61 of file steiner_components.hpp.
|
inline |
Returns total number of components, each version counted separately.
Definition at line 48 of file steiner_components.hpp.