Skip to content

Commit

Permalink
修改,已知错误
Browse files Browse the repository at this point in the history
  • Loading branch information
floor07 committed Feb 4, 2017
1 parent f75f435 commit c214eb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/chapter9/smallestpath/WeightNegative.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public void weightNegative(Vertex s) {
wadj.getW().setDist(wadj.cvw + v.dist);
wadj.getW().setPath(v);
if (!wadj.getW().isInQueue) {
wadj.getW().isInQueue = false;
//修改错误
wadj.getW().isInQueue = true;
q.add(wadj.getW());
}
}
Expand Down

0 comments on commit c214eb5

Please sign in to comment.