1.

If a simple graph G, contains n vertices and m edges, the number of edges in the Graph G'(Complement of G) is___________(a) (n*n-n-2*m)/2(b) (n*n+n+2*m)/2(c) (n*n-n-2*m)/2(d) (n*n-n+2*m)/2My query is from Graph topic in section Graph of Data Structures & Algorithms IThis question was addressed to me in my homework.

Answer» RIGHT choice is (a) (n*n-n-2*m)/2

For EXPLANATION: The union of G and G’ would be a COMPLETE GRAPH so, the number ofedges in G’= number of EDGES in the complete form of G(nC2)-edges in G(m).


Discussion

No Comment Found

Related InterviewSolutions