The time complexity of finding a shortest path in a network is: