Skip to content

Commit

Permalink
Update Dijkstra.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashishgup1 authored Sep 9, 2018
1 parent 87ff653 commit 678fe34
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dijkstra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ void dijkstra(int source, int destination)
s.erase(x);
vis[x.second]=1;
departure[x.second]=arrival[x.second];
vector<pair<int, int> > v;
for(auto it:g[x.second])
{
v.push_back(it);

if(arrival[it.first] > departure[x.second] + it.second)
{
s.erase({arrival[it.first], it.first});
Expand Down

0 comments on commit 678fe34

Please sign in to comment.