All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
distance_oracle_example.cpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //=======================================================================
18 #include "test/test_utils/sample_graph.hpp"
19 
20 #include <iostream>
21 
22 int main() {
23  using SGM = sample_graphs_metrics;
24  using Graph = SGM::Graph;
25 
26  const Graph g = SGM::get_graph_small();
27  const int k = 2;
28 
30 
31  std::cout << "Approximate distance between A and C is " << oracle(SGM::A, SGM::C) << std::endl;
32 }
int main()
[Distance Oracle Example]
distance_oracle_thorup2kminus1approximation< Graph, VertexIndexMap, EdgeWeightMap, Rand > make_distance_oracle_thorup2kminus1approximation(const Graph &g, const int k, VertexIndexMap index, EdgeWeightMap edge_weight, Rand &&random_engine=Rand(5426u))