After constructing the edges according to the 2-SAT model, two groups can be obtained: a clique and an independent set.
What needs to be considered afterwards is how many different schemes there are.
We found that for the group and independent collections, we can only take out one point each at a time and put it in the other side (of course we don’t need to take it). And since n just satisfies the data range of n^2, we enumerate the points taken from the group and put into the independent concentration, and the points taken from the independent set and put into the graph, n ^2 judges whether the operation is Can meet the conditions.