As I read the time complexity for Dijkstra's algorithm on the unweighted graph using queue is O(n2) in the worst case. I assume this is because od bfs and dfs. BFS processes all the vertices during the marking phase and dfs is used for tracing back. They both have linear time complexity. But I'm not sure if this logic is correct.
Also for weighted graph, I know that the time complexity is O(EVlogV),where E is edges and V vertices. I think this is because of priority queue and I understand how priority queue works but still don't understand the O notation.