findCliques <- function(M) { # TODO: translate findCliques() from matlab/spatial/findCliques.m }