Boost logo

Boost Users :

Subject: [Boost-users] [BGL] how to call Dijkstra
From: Sandeep Gupta (gupta.sandeep_at_[hidden])
Date: 2008-10-31 01:00:18


Hi,
  I am missing something regarding the correct calling convention for
Dijkstra algorithm. Here is the relevant part of the code:

           typedef boost::associative_property_map< std::map<Vertex, int> >
intmapt;
           typedef boost::associative_property_map< std::map<Vertex, Vertex>
> nodemapt;
          dijkstra_visitor<null_visitor> mynullvis;
          dijkstra_shortest_paths<Graph, dijkstra_visitor<null_visitor>,
nodemapt, intmapt, intmapt, nodemapt, std::less<int>,
        std::plus<int>, std::numeric_limits<int>, std::numeric_limits<int> >
(G, v, predmap, distmap, weightmap, indexmap, std::less<int>(),
std::plus<int>(), std::numeric_limits<int>::max(), 0, mynullvis);

I get an error as no matching function call dijkstra_shortest_paths.
Appreciate some pointers as what could possibly be wrong.

Thanks
sandeep



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net