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

Bidirectional paths? #23

Open
ghost opened this issue Apr 19, 2018 · 1 comment
Open

Bidirectional paths? #23

ghost opened this issue Apr 19, 2018 · 1 comment
Milestone

Comments

@ghost
Copy link

ghost commented Apr 19, 2018

{ A: { B: 5, D: 5, E: 7 },B: { C: 4 },C: { D: 8, E: 2 },D: { C: 8, E: 6 },E: { B: 3 } }

Given the above graph data, when trying to get the path for ['B','B'], it returns null instead of ['B','E','C','B']

Is there a way to find a circular path for as single source, shortest route preferred?

@albertorestifo
Copy link
Owner

I can see why that might be an interesting use case.

Right now the API doesn't allow searching a circular path. Implementing it it's not that straight forward either because of the priority queue optimization.

I might have a look about it this weekend if I have time. PRs welcome.

@albertorestifo albertorestifo added this to the v2.6.0 milestone May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant