The original code (with small code changes to improve readability) used in SEA 2011 paper: Listing All Maximal Cliques in Large Sparse Real-World Graphs by D. Eppstein and D. Strash.