bonne version
This commit is contained in:
부모
45ee3d48da
커밋
112c046292
2개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
|
|
@ -55,8 +55,9 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
|
|||
Tas.remove(pre);
|
||||
System.out.println("remove");
|
||||
}
|
||||
pre = l;
|
||||
|
||||
l.setCost(Math.min(l.getCost(), x.getCost()+data.getCost(suivant)));
|
||||
pre = l;
|
||||
Tas.insert(l);
|
||||
l.setParent(suivant);
|
||||
l.setMarque(true);
|
||||
|
|
|
|||
Binary file not shown.
불러오는 중…
Reference in a new issue