Notes on shortest paths algos.