Since the graph needs to be disconnected with maximum number of edges. So 1 Vertex needs to be left. So I can connect remaining 9 Vertices with each other and form a complete graph.
Connecting 1st vertex with remaining 8 vertices=8 edges.
Connecting 2nd vertex with remaining 7 vertices (because it is already connected to 1st vertex)=7 edges.
Connecting 3rd vertex with 6 vertices (because it is already connected to 1st vertex and 2nd vertex)=6 edges.
This is an arithmetic progression with 8 terms, first term 8, and common difference −1.
It forms an A.P. = 8+7+6+...........+1
Sum of A.P.= n/2 [2a+(n-1)d]
= 8/2 [2*8 + 7(-1)]
= 4[16-7]
= 4 * 9
= 36
Hence, we get 36 edges.