reworked first example to make use of igraph's maximal.cliques function