Input:

E = 3, V = 3, adj: {{1, 2}, {1, 3}, {3, 2}}
Output: 1
Explanation: We can see that there is only one component in the graph and in this component there is a edge between any two vertces.
Input:

E = 5, V = 7, adj: {{1, 2}, {7, 2}, {3, 5}, {3, 4}, {4, 5}}
Output: 2
Explanation: We can see that there are 3 components in the graph. For 1-2-7 there is no edge between 1 to 7, so it is not a fully connected component. Rest 2 are individually fully connected component.