Class DijkstraShortestPathHeap

All Implemented Interfaces:
SingleSourceShortestPath

public class DijkstraShortestPathHeap extends DijkstraShortestPathBase
Implementation of Dijkstra's algorithm that uses a heap in order to select the optimal vertex at each step. The complexity of this implementation is O(m log n), where m is the number of edges and n the number of vertices. Suitable for sparse graphs.

Author:
Cristian Frăsinaru