I am new to Dijkstra Algorithm.
My question is that: for an undirected graph G with n nodes and m edges, the time complexity for Dijkstra Algorithm to find shortestst path is o((n+m)logn). However, if the G is connected, why this time complexity can be also expressed as o(mlogn)?
Cheers