
16 Mar
2010
16 Mar
'10
5:55 a.m.
//RESULTS in compiler errors. See below.
dijkstra_shortest_paths( g, src, predecessor_map(&p[0]).distance_map(&d[0]) ) ;
You are missing the weight map, which is a required argument to dijkstra_shortest_paths. The graph in dijkstra-example.cpp has a built-in weight map (using old-style properties); the default method for finding weight maps does not find bundled properties named "weight".
That did it. I added the following predecessor_map(&p[0]).distance_map(&d[0]).weight_map(get(&edge_properties::weight,g)) ) and it worked ... Thanks a lot...