I have the following code all done in spyder:
df = nx.from_pandas_adjacency(pd.read_excel(r"path/to/file.xlsx", sheet_name="Sheet4",index_col=0,usecols = "A:BR"))
df1=pd.DataFrame(list(nx.enumerate_all_cliques(nx.Graph(df))))
I have 69 objects where nx.enumerate_all_cliques
finds all 47000 possible compatible combinations from the excel file. I have certain objects in this list that must be together and I want to ignore all combinations that do not contain all those objects somewhere in that possible combination. I am fine with listing out the groups of items that must be together as there are only a few.