28 #ifndef INCLUDE_SPANNINGTREE_PGR_KRUSKAL_HPP_
29 #define INCLUDE_SPANNINGTREE_PGR_KRUSKAL_HPP_
32 #include <boost/graph/kruskal_min_spanning_tree.hpp>
43 std::vector<pgr_mst_rt>
kruskal(
G &graph);
47 std::vector<int64_t> roots,
52 std::vector<int64_t> roots,
57 std::vector<int64_t> roots,
61 typedef typename G::B_G
B_G;
75 CHECK_FOR_INTERRUPTS();
76 boost::kruskal_minimum_spanning_tree(
78 std::inserter(this->m_spanning_tree.edges, this->m_spanning_tree.edges.begin()),
79 boost::weight_map(get(&G::G_T_E::cost, graph.graph)));
84 std::vector<pgr_mst_rt>
87 return this->mst(graph);
92 std::vector<pgr_mst_rt>
95 std::vector<int64_t> roots,
97 return this->mstBFS(graph, roots, max_depth);
101 std::vector<pgr_mst_rt>
104 std::vector<int64_t> roots,
106 return this->mstDFS(graph, roots, max_depth);
110 std::vector<pgr_mst_rt>
113 std::vector<int64_t> roots,
115 return this->mstDD(graph, roots, distance);
122 #endif // INCLUDE_SPANNINGTREE_PGR_KRUSKAL_HPP_