Skip to content

Added a new k disjoint shortest path algorithm for sparse graphs - #797

Open
bkrogh wants to merge 3 commits into
jgrapht:masterfrom
bkrogh:disjointPathsTreeGrafting
Open

bkrogh wants to merge 3 commits into
jgrapht:masterfrom
bkrogh:disjointPathsTreeGrafting

Conversation

@bkrogh

@bkrogh bkrogh commented Jun 26, 2019

Copy link
Copy Markdown

Added a new k disjoint shortest path algorithm which is faster for the cases with sparse graphs and where the k disjoint paths from source to sink are similar to the shortest path tree rooted in the source vertex

This addresses issues: #796

Added a new algorithm which is a slightly altered version of the existing Bhandari implementation.

I welcome any comments that may improve the code quality (and improve chances of this getting merged)


[email protected] and others added 3 commits June 26, 2019 15:46
faster for the cases with sparse graphs and where the k disjoint paths
from source to sink are similar to the shortest path tree rooted in
the source vertex
@Toptachamann

Copy link
Copy Markdown
Collaborator

Hi,

This looks interesting. Cloud you please include an experimental running time comparison of both implementations. There're some examples of how we implement benchmark tests under jgrapht/jgrapht-core/java/test/test/org/jgrapht/perf/....

Please, also try to find out the cases when the previous implementation is more efficient. We have to state this as clear as possible in the Java doc so that there's no doubt for the users which one to use.

@jkinable

Copy link
Copy Markdown
Collaborator

What's the status of this PR?

This branch has not been deployed

No deployments
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.

3 participants