Altered triangulate function to also return the induced cliques.