33 namespace algorithms {
37 std::vector<pgr_components_rt>
39 std::vector< std::vector< int64_t > > &components) {
41 for (
auto &component : components) {
42 std::sort(component.begin(), component.end());
44 sort(components.begin(), components.end());
47 std::vector< pgr_components_rt > results;
48 for (
const auto& component : components) {
49 auto component_id = component[0];
50 for (
const auto element : component) {
51 results.push_back({component_id, element});