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

two sided dijkstra #268

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
relax arguments u,v now untyped
  • Loading branch information
Alexandre Schulz committed Jul 3, 2023
commit 806593da7bfeef11cbf0d8057b71de0dc27996ab
5 changes: 2 additions & 3 deletions src/shortestpaths/dijkstra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function dijkstra_shortest_paths(
alt = d + distmx[u, v]

alt > maxdist && continue

relax(u,v,distmx,dists,parents,visited,H;
allpaths=allpaths,
pathcounts=pathcounts,
Expand Down Expand Up @@ -149,8 +148,8 @@ function dijkstra_shortest_paths(
)
end

function relax(u::U,
v::U,
function relax(u,
v,
distmx::AbstractMatrix{T},
dists::Vector{T},
parents::Vector{U},
Expand Down