Class DijkstraShortestPathDefault

All Implemented Interfaces:
SingleSourceShortestPath

public class DijkstraShortestPathDefault extends DijkstraShortestPathBase
Implementation of Dijkstra's algorithm that iterates through the unsolved vertices in order to select the optimal vertex at each step. The complexity is of O(n^2), where n is the number of vertices. Suitable for dense graphs.

Author:
Cristian Frăsinaru
  • Constructor Details

    • DijkstraShortestPathDefault

      public DijkstraShortestPathDefault(Graph graph, int source)
  • Method Details