There is something wrong with the formula you posted.

Look at the attached graph. It has 2 components, 7 vertices, and 7 edges.

Even if it were about maximal components there will be only two more edges in this graph. The formula still does not work.