19 #include "test/test_utils/sample_graph.hpp"
25 typedef sample_graphs_metrics SGM;
26 auto gm = SGM::get_graph_metric_steiner();
27 typedef decltype(gm) Metric;
32 typedef VT::GeneratorsSet GSet;
33 typedef VT::VerticesSet VSet;
34 voronoiT voronoi(GSet{ SGM::A, SGM::B, SGM::C, SGM::D }, VSet{ SGM::E },
38 std::vector<int> steiner_points;
40 gm, voronoi, std::back_inserter(steiner_points));
43 std::cout <<
"Steiner points:" << std::endl;
44 boost::copy(steiner_points, std::ostream_iterator<int>(std::cout,
"\n"));
default VertexType is int.
void steiner_tree_zelikovsky11per6approximation(const Metric &m, const Voronoi &v, OutputIterator out)
11/6 approximation for steiner_tree problem
simple implementation of the Voronoi concept.
int main()
[Steiner Tree Example]