This class serves as an interface for different approaches concerning the calculation of save edges. More...
#include <ogdf/graphalg/steiner_tree/Save.h>
Public Member Functions | |
Save () | |
virtual | ~Save () |
virtual T | gain (node u, node v, node w) const =0 |
Returns the gain (sum of the save edges) of a node triple. More... | |
virtual edge | saveEdge (node u, node v) const =0 |
Returns the save edge between two nodes. More... | |
virtual T | saveWeight (node u, node v) const =0 |
Returns the weight of the save edge between two nodes. More... | |
virtual void | update (const Triple< T > &t)=0 |
Updates the weighted tree data structure given a contracted triple. More... | |
This class serves as an interface for different approaches concerning the calculation of save edges.
|
inline |
|
inlinevirtual |
|
pure virtual |
Returns the gain (sum of the save edges) of a node triple.
u | First triple node |
v | Second triple node |
w | Third triple node |
Implemented in ogdf::steiner_tree::SaveEnum< T >, ogdf::steiner_tree::SaveStatic< T >, and ogdf::steiner_tree::SaveDynamic< T >.
|
pure virtual |
Returns the save edge between two nodes.
u | First node |
v | Second node |
Implemented in ogdf::steiner_tree::SaveDynamic< T >, ogdf::steiner_tree::SaveEnum< T >, and ogdf::steiner_tree::SaveStatic< T >.
|
pure virtual |
Returns the weight of the save edge between two nodes.
u | First node |
v | Second node |
Implemented in ogdf::steiner_tree::SaveDynamic< T >, ogdf::steiner_tree::SaveEnum< T >, and ogdf::steiner_tree::SaveStatic< T >.
|
pure virtual |
Updates the weighted tree data structure given a contracted triple.
t | The contracted triple |
Implemented in ogdf::steiner_tree::SaveEnum< T >, ogdf::steiner_tree::SaveDynamic< T >, and ogdf::steiner_tree::SaveStatic< T >.