I have been tasked with an assignment where I have to check if a group of people have a "close friendship". This is defined as a group of people where all persons in the group are friends with all other persons in the group. So far I have this as my algorithm:
1) Initialize vertices as not visited
2) Do a DFS traversal of the graph starting from any arbitrary vertex v, marking visited vertices as visited
3) If the DFS traversal visits all vertices, return true
4) If it does not, return false.
Now I have to calculate the time complexity. However, I am having a hard time with time complexity in general, and I am not entirely sure how to do this. The way I see it is that I go through all the vertices in my set, which would be... O(v)? Is this correct? And if it is, what do I do from here?

npeople is in close relationship if it forms a complete graph, and as such must have preciselyn*(n-1)/2distinct edges.