Introduction to all pairs shortest paths