37 namespace steiner_tree {
virtual T gain(node u, node v, node w) const =0
Returns the gain (sum of the save edges) of a node triple.
virtual void update(const Triple< T > &t)=0
Updates the weighted tree data structure given a contracted triple.
Class for the representation of edges.
Class for the representation of nodes.
Definition of a Triple used in contraction-based approximation algorithm for the minimum Steiner tree...
virtual edge saveEdge(node u, node v) const =0
Returns the save edge between two nodes.
The namespace for all OGDF objects.
This class serves as an interface for different approaches concerning the calculation of save edges...
This class represents a triple used by various contraction-based minimum Steiner tree approximations...
virtual T saveWeight(node u, node v) const =0
Returns the weight of the save edge between two nodes.