Since the graph is undirected (v1,v2) is same as (v2,v1).So we care only about picking a pair and placing an edge between them without any self loops and multiple edges as simple undirected graph is needed
No of ways to pick a pair from n objects =nC2=n(n-1)/2
Correct answer is option B.