Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC 2022 : Shobhit Chaurasia Week 10 #254

Merged
merged 9 commits into from
Aug 21, 2022
Merged

GSoC 2022 : Shobhit Chaurasia Week 10 #254

merged 9 commits into from
Aug 21, 2022

Conversation

shobhit162
Copy link
Member

Changes proposed in this pull request:

  • Wrong result and approach

@pgRouting/admins

i != inv_perm.end(); ++i) {
log << inv_perm[*i] << " ";
auto seq=graph[*i].id;
results.push_back({{seq}, {static_cast<int64_t>(inv_perm[*i])}});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the boost library uses an index map to store the nodes in results. But the problem is, I didn't know how to introduce an index map of the same type that is present in the boost library to the graph type which I followed.

@@ -88,6 +88,9 @@ class CuthillMckeeOrdering : public Pgr_messages{
std::vector <size_type> colors(boost::num_vertices(graph.graph));
auto color_map = boost::make_iterator_property_map(&colors[0], i_map, colors[0]);
auto out_deg = boost::make_out_degree_map(graph.graph);
#if 0
boost::property_map<Graph,boost::vertex_index_t>::const_type index_map=boost::get(boost::vertex_index, graph.graph);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is giving me error

@shobhit162 shobhit162 marked this pull request as ready for review August 21, 2022 19:38
@shobhit162 shobhit162 merged commit 455e977 into pgRouting:shobhit-2022 Aug 21, 2022
@shobhit162 shobhit162 changed the title GSoC 2022 : Shobhit Chaurasia GSoC 2022 : Shobhit Chaurasia Week 10 Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant