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
Add optional distance in BFS #16470
Comments
comment:1
I do not understand your problem, but do you know Nathann |
Branch: u/foosterhof/ticket/16470 |
comment:3
I need BFS to report the distance as well, the minimum number of edges/arcs to be traversed for every vertex. The shortest_paths method implements this, but it does not have any option to specify a neighbor function, which is possible in the breadth_first_search method. My commit is a small modification that does implement this. New commits:
|
Upstream: Reported upstream. No feedback yet. |
Commit: |
Changed branch from u/foosterhof/ticket/16470 to public/16470 |
comment:5
I have made a review commit. I still need to check that the doc builds, otherwise thinks look good to me. Can you have a look at my changes, and see if you agree with them ? They are mostly typographical. New commits:
|
Reviewer: Frédéric Chapoton |
comment:6
Please put your real name in the author field of the ticket. |
Changed upstream from Reported upstream. No feedback yet. to none |
comment:8
Looks good to me. You can set a positive review on my behalf if you agree with my small typographical changes. And please add your real name in the author field. |
comment:9
Thank you for reviewing. The author of this patch was my student Florian Oosterhof, who worked on this code as a part of his bachelor thesis. I'm not sure if he is still active on the sage trac, so I added his name in the author field on his behalf. |
Author: Florian Oosterhof |
Changed branch from public/16470 to |
There is no way to get the edge distance with a custom neighbor function.
breadth_first_search() does not report distance, and shortest_paths() does not give the option to specify a neighbor function.
CC: @sagetrac-Rudi
Component: graph theory
Keywords: breadth first search distance
Author: Florian Oosterhof
Branch/Commit:
0087e5b
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/16470
The text was updated successfully, but these errors were encountered: