Implementation of the algorithm CLIQUES from Fig. 2 of E. Tomita, A. Tanaka, and H. Takahashi. The worst-case time complexity for generating all maximal cliques and computational experiments. Theor. Comput. Sci., 363(1):28–42, October 2006.
https://snap.stanford.edu/class/cs224w-readings/tomita06cliques.pdf