& params, Weight) { typedef typename property_traits::value_type W; std::less compare; detail::_project2nd combine; dijkstra_shortest_paths(G, s, params.distance_compare(compare). distance_combine(combine)); } } // namespace detail template inline void prim_minimum_spanning_tree (const VertexListGraph& g, typename graph_traits::vertex_descriptor s, PredecessorMap predecessor, DistanceMap distance, WeightMap weight, IndexMap index_map, DijkstraVisitor vis) { typedef typename property_traits::value_type W; std::less compare; detail::_project2nd combine; dijkstra_shortest_paths(g, s, predecessor, distance, weight, index_map, compare, combine, (std::numeric_limits::max)(), 0, vis); } template inline void prim_minimum_spanning_tree (const VertexListGraph& g, PredecessorMap p_map, const bgl_named_params& params) { detail::prim_mst_impl (g, choose_param(get_param(params, root_vertex_t()), *vertices(g).first), params.predecessor_map(p_map), choose_const_pmap(get_param(params, edge_weight), g, edge_weight)); } template inline void prim_minimum_spanning_tree (const VertexListGraph& g, PredecessorMap p_map) { detail::prim_mst_impl (g, *vertices(g).first, predecessor_map(p_map). weight_map(get(edge_weight, g)), get(edge_weight, g)); } } // namespace boost #endif // BOOST_GRAPH_MST_PRIM_HPP
& params) { detail::prim_mst_impl (g, choose_param(get_param(params, root_vertex_t()), *vertices(g).first), params.predecessor_map(p_map), choose_const_pmap(get_param(params, edge_weight), g, edge_weight)); } template inline void prim_minimum_spanning_tree (const VertexListGraph& g, PredecessorMap p_map) { detail::prim_mst_impl (g, *vertices(g).first, predecessor_map(p_map). weight_map(get(edge_weight, g)), get(edge_weight, g)); } } // namespace boost #endif // BOOST_GRAPH_MST_PRIM_HPP