Can you tell the complexity

sir can you tell me the complexity of the code ,acc to me it will be VVElogV , elogv due to dijkstra and v*v as we will consider all vertices x,y

@neerav Hey,time complexity is complexity of dijkstra which is nlogn
Space complexity is n

kk got it , thnx sir

@neerav no problem bro,please close the doubt and also give good rating if I am able to solve your doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.