Dijkstra's algorithm

With no negative weights, repeatedly settling the closest unsettled vertex and relaxing its edges gives the shortest distance to every vertex, in $O((V + E)\log V)$ with a heap, and a single negative edge can make it wrong.

From Data Structures and Algorithms.