Longest paths: Dijkstra 2
1. Theory
One of the most important tasks in the graph theory is the calculation of the longest and shortest path between a starting node I and an end node J.
The Dijkstra Algorithm is an algorithm that allows you to allocate the shortest path in a graph between a starting node i and an end note j by inlcuding other nodes of the graph.
It can also be used to calculate longest paths with some simple modifications.
2. Example
3. Explanation of the problem
In this example we want to find the longest path from node A to node G To avoid the calculation of every possible path use the djikstra algorithm.
Although It might be seem easy to recognize the solution by overviewing the problem, but more complex problems with a lot more nodes,
will make it is necessary to have a working algorithm which can provide a precise and easy solution.
4. Detailed Solution