Re: [R] possible bug with largest.cliques in igraph_0.6-3

2012-10-31 Thread Gábor Csárdi
Indeed this seems to be a bug, if the graph is directed. The workaround is to convert it to an undirected graph, the clique computation ignores direction anyway: library(igraph) adj <- matrix(1, nrow=11, ncol=11) - diag(11) g <- graph.adjacency(adj) largest.cliques(g) # [[1]] # [1] 10 8 1 # # [

[R] possible bug with largest.cliques in igraph_0.6-3

2012-10-31 Thread Christos Hatzis
There is a problem with the largest clique computation in the recent version of igraph. > library(igraph) > adj <- matrix(1, nrow=11, ncol=11) - diag(11) > g <- graph.adjacency(adj) > largest.cliques(g) [[1]] [1] 10 8 1 [[2]] [1] 9 7 1 [[3]] [1] 8 7 1 Warning message: In largest.cliques(g) :