Total number of subgraphs = Subgraphs with 1 isolated vertex + Subgraphs with 2 isolated vertices + ... + Subgraphs with n isolated vertices
We select all combinations of k vertices from the set of all vertices (
Now, this has turned into another subproblem: to calculate the number of edges not connected to a specific k-vertex subgraph
Total number of edges - edges connected to each of the k vertices + edges amongst each of the k vertices
(adding the last term to avoid double conting)
Let there be v number of vertices and e number of edges in a graph V.
where C(x,y) is a function that takes a set x and a number y and returns combinations of elements of x of size y.