What's the big-O complexity for the following loop:
for each vertex u ∈ C do
for each vertex v ∈ C and v > u do
What I'm doing here is imagine the following set {1,2,3,4} the loop executes a function for all the combinations of 2 elements of this numbers, (1,2), (1,3), (1,4), (2,3), (2,4), (3,4).
Is it =(n^2) where n is the number of elements in the set?