So there is this homework question where we have to determine the number of graphs with no vertices of degree 0 using the inclusion-exclusion principle. With $V = {1, 2, ... n}$ and the answer should be a function of n.
I know this is the inclusion-exclusion principle rule and that the total number of graphs possible is $2^{\binom{n}{2}}$. So that would be $|A_1| + |A_2| + ... + |A_n|$.
$$\left| \bigcup_{i = 1}^{n} A_i \right| = \sum_{k = 1}^{n} (-1)^{k - 1} \sum_{I \in \binom{\{1, 2, \ldots, n\}~}{k}} \left| \bigcap_{i \in I} A_i\right|$$
But I don't really know what $|A_1 \cap A_2|$ is supposed to mean/be in this example and neither the others. Can someone help me with this?
You can think $|A_i|$ as the number of graphs that for the vertex $i$ with $1 \le i \le n$, $d(i)=0$. In this case, if we give an example, $|A_1 \cap A_2|$ is the number of graphs that vertex $1$ and $2$ both has degree of $0$. What you want to do is to find the number of graphs with at least one vertex with degree zero and subtract it from the number of total graphs you can have, which is as you stated, $2^{\binom{n}{2}}$. Here, I can say that for each $i$, $|A_i| = 2^{\binom{n-1}{2}}$ because we are removing all the edges connected to $i$ in order to make $d(i) = 0$ and construct a new graph with remaining edges and $n-1$ vertices. Similarly, $|A_1 \cap A_2| = 2^{\binom{n-2}{2}}$ and so on. Now you can use Inclusion-Exclusion Principle to find the number of bad graphs (the graphs that have at least one vertex with degree zero). So your answer should be $$2^{\binom{n}{2}} - |\bigcup \limits_{i=1}^{n}A_{i}| =\sum \limits_{k=0}^{n}{(-1)^k\binom{n}{k}2^{\binom{n-k}{2}}}$$
Note that I also included the term $2^{\binom{n}{2}}$ to the sum.