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

BFS Shortest Path #469

Closed
assimiz opened this issue Jan 10, 2018 · 9 comments · Fixed by #743
Closed

BFS Shortest Path #469

assimiz opened this issue Jan 10, 2018 · 9 comments · Fixed by #743
Labels
enhancement gsoc candidate task for Google Summer of Code

Comments

@assimiz
Copy link

assimiz commented Jan 10, 2018

Hi,
Do you think a BFS shortest path implementation would be useful?
Cause currently one is bound to use Dijkstra/others also for unweighted graphs and BFS would perform much better in this case.

Regards,
Assaf.

@abhishekiit2014032
Copy link

This could be solved easily using (BFS) if all edge weights were (1)
Dijkstra can be used only when edge weights are +ve
best-known algorithm for finding single-source shortest paths in a directed graph with negative edge weights is the Bellman-Ford algorithm. This comes at a cost, however: Bellman-Ford requires O(|V|·|E|) time, while Dijkstra's requires O(|E| + |V|log|V|) time, which is asymptotically faster for both sparse graphs (where E is O(|V|)) and dense graphs (where E is O(|V|^2)).

@assimiz
Copy link
Author

assimiz commented Feb 20, 2018

Yes @abhishekiit2014032 that's exactly what I am talking about. A BFS shortest path implementation.

@swetanjal
Copy link

swetanjal commented Feb 28, 2018

@assimiz I am interested to implement this.
I would be grateful if you guide me how to go about doing it as I come from competitive programming background and this will be my first contribution to any open source organization.

@NorahS
Copy link

NorahS commented Mar 9, 2018

Hi, I'd like to try and implement this as well

@jsichi jsichi added the gsoc candidate task for Google Summer of Code label Oct 9, 2018
@divyanshu132
Copy link

If this issue has not been resolved, I'll be happy to resolve it. Should I proceed??

@jsichi
Copy link
Member

jsichi commented Dec 5, 2018

Sure; please start here:

https://github.com/jgrapht/jgrapht/wiki/Become-a-Contributor

@divyanshu132
Copy link

Hi, @jsichi I've implemented it and created a pull request please have a look.

@ksskreddy
Copy link

Hi,is it still open?I would like to implement it

@jsichi
Copy link
Member

jsichi commented Jan 13, 2019

Yes, it's still open. (The previous submission wasn't usable.)

@ksskreddy ksskreddy mentioned this issue Jan 13, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement gsoc candidate task for Google Summer of Code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants