Initial labelled clique algorithm