So if I understand you correctly, you're trying to prime the recursion with a partial solution which you already know to be a sub-clique, in order to reduce the number of recursive steps required? In that case, I think where you've gone astray is in priming the candidates array. At...

reduction,np-complete,np,clique-problem,independent-set

I found out reduction from problem INDEPENDENT-SET to CLIQUE-OR-INDEPENDENT-SET. All you need to do is to add n isolated vertices to graph G (which is an instance of INDEPENDENT-SET and has n vertices). Let call this newly created graph G' (instance of CLIQUE-OR-INDEPENDENT-SET). Then it is not hard to prove...

r,igraph,bipartite,sna,clique-problem

I managed to find a script for this in the Sisob workbench computeBicliques <- function(graph, k, l) { vMode1 <- c() if (!is.null(V(graph)$type)) { vMode1 <- which(!V(graph)$type) vMode1 <- intersect(vMode1, which(degree(graph) >= l)) } nb <- get.adjlist(graph) bicliques <- list() if (length(vMode1) >= k) { comb <- combn(vMode1, k) i...

algorithm,matlab,adjacency-matrix,clique-problem

I don't know whether there is a better alternative which should give you direct results, but here is one approach which may serve your purpose. Your input: >> A A = 0 1 1 0 1 1 0 0 1 0 0 1 1 0 1 1 0 0 1...