Doubt regarding complexity

Shouldn’t the complexity be O(vlogv + eloge) instead of O(vlogv + e) because i am inserting the edges in the set as well?

@meadri17 hey it depends on data structure you use , actually e is for traversing all the edges vlogv is for vertices contribution.