Skip to content

Find the shortest path between two nodes in a weighted graph based on Dijkstra algorithm

Notifications You must be signed in to change notification settings

zhaohuabing/shortest-path-weighted-graph-dijkstra-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shortest-path-weighted-graph-Dijkstra-java

Find the shortest path between two nodes in a weighted graph based on Dijkstra algorithm

test case


            B    1     D   6
       5  .-+---------.'-------F
       .-'  |       .' |
    A.'     |2    .'   |
      `.    |   .'4    |3
       1`-. | .'       |
           `.'---------+
            C     8    E
  • shortest path between A and F: [A, C, B, D, F]
  • shortest path between C and F: [C, B, D, F]
  • shortest path between D and A: [D, B, C, A]

Reference:

About

Find the shortest path between two nodes in a weighted graph based on Dijkstra algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages