A simple graph of 25 vertices and 6 connected components.

What is the minimum and maximum number of edges can the graph have?

Is there a formula to calculate the min and max? 25 vertices is too huge to draw and there are several possibilities for minimum number as well as maximum number of edges.

Thanks.