Creating clique graph to determine independent set
问题 Trying to transform an s-clique into a s-independent set. Below is code and the function at the very bottom 'independent_set_decision(H,s)' is what I am struggling with. I understand that I need to create a complement of the graph and then check if that graph is a clique. However, the function I wrote isn't creating the graph as intended. Anyone have any advice please on what's wrong with that code? # Returns a list of all the subsets of a list of size k def k_subsets(lst, k): if len(lst) < k