r/javahelp • • Jun 02 '20

Dijkstra using PriorityQueue and Collections

I have problem implementing Dijkstra's algorithm in Java using PriorityQueue. The program is not checking all the nodes . PLEASE I NEED HELP FIXING THIS. here is the code :

https://hasteb.in/amuhemig.cs

0 Upvotes

4 comments sorted by

View all comments

1

u/Robyt3 Jun 02 '20

Try doing the things that bring you closer to your goal and don't do the wrong things.

Also try a subreddit that's actually about .cs files (like /r/csharp or /r/cheesesandwich).