Hi,
I am getting following error when trying to use the
johnson_all_pairs_shortest_paths( ) function in boost graph library (BGL).
"no matching function for call to
johnson_all_pairs_shortest_paths(boost::adjacency_list, boost::property >,
boost::no_property, boost::listS>&,
int[((unsigned int)((int)V))][((unsigned int)((int)V))],
boost::bgl_named_params) "
relevant variable declarations & typedefs are:
typedef adjacency_list , \
property > >
Graph;
.....
// Graph g is constructed
.....
int V = num_vertices(g);
std::vector < int >d_j(V, (std::numeric_limits < int >::max)());
int D[V][V];
.....
// call Johnson's all pair shortest path algo.
johnson_all_pairs_shortest_paths(g, D, distance_map(&d_j[0]));
Do let me know if any more info is reqd.
I would greatly appreciate any help/suggestions.
Thanks and regards,
Sangam
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you